Skip to content

Commit

Permalink
tests: newline in nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
espy committed Apr 24, 2018
1 parent f4d640c commit 336b78b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/jobs/deprecate-nodejs-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ after_success: npm run deploy`
// mock relative dependencies
jest.mock('../../lib/create-branch', () => ({ transforms }) => {
const inputNvmrc = '4.12.1'
const targetNvmrc = '6'
const targetNvmrc = '6\n'
const updatedNvmrc = transforms[1].transform(inputNvmrc)
transforms[1].created = true
expect(updatedNvmrc).toEqual(targetNvmrc)
Expand Down
2 changes: 1 addition & 1 deletion test/jobs/update-nodejs-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ branches:
// mock relative dependencies
jest.mock('../../lib/create-branch', () => ({ transforms }) => {
const inputNvmrc = '8.13'
const targetNvmrc = '10'
const targetNvmrc = '10\n'
const updatedNvmrc = transforms[1].transform(inputNvmrc)
transforms[1].created = true
expect(updatedNvmrc).toEqual(targetNvmrc)
Expand Down

0 comments on commit 336b78b

Please sign in to comment.