Skip to content

Commit

Permalink
build(dev-deps): Move to standard 12.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jezhiggins committed Sep 5, 2018
1 parent 3d4c445 commit 5e3a1e5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"mocha": "5.2.0",
"nyc": "13.0.1",
"semantic-release": "15.9.12",
"standard": "11.0.1",
"standard": "12.0.1",
"@semantic-release/changelog": "3.0.0",
"@semantic-release/git": "7.0.3"
},
Expand Down
26 changes: 13 additions & 13 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ describe('Choice tests', function () {
]
}
)
expect(calculateNextState({foo: true})).to.equal('FirstMatchState')
expect(calculateNextState({foo: false})).to.equal('SecondMatchState')
expect(calculateNextState({foo: 'Unexpected!'})).to.equal(undefined)
expect(calculateNextState({ foo: true })).to.equal('FirstMatchState')
expect(calculateNextState({ foo: false })).to.equal('SecondMatchState')
expect(calculateNextState({ foo: 'Unexpected!' })).to.equal(undefined)
expect(calculateNextState({})).to.equal(undefined)
})

Expand All @@ -53,9 +53,9 @@ describe('Choice tests', function () {
Default: 'DefaultMatchState'
}
)
expect(calculateNextState({foo: 1})).to.equal('FirstMatchState')
expect(calculateNextState({foo: 2})).to.equal('SecondMatchState')
expect(calculateNextState({foo: 3})).to.equal('DefaultMatchState')
expect(calculateNextState({ foo: 1 })).to.equal('FirstMatchState')
expect(calculateNextState({ foo: 2 })).to.equal('SecondMatchState')
expect(calculateNextState({ foo: 3 })).to.equal('DefaultMatchState')
})

it('Should pick a simple state using Includes', function () {
Expand All @@ -76,9 +76,9 @@ describe('Choice tests', function () {
Default: 'DefaultMatchState'
}
)
expect(calculateNextState({foo: ['A', 'G']})).to.equal('FirstMatchState')
expect(calculateNextState({foo: ['B', 'C']})).to.equal('SecondMatchState')
expect(calculateNextState({foo: ['E', 'F']})).to.equal('DefaultMatchState')
expect(calculateNextState({ foo: ['A', 'G'] })).to.equal('FirstMatchState')
expect(calculateNextState({ foo: ['B', 'C'] })).to.equal('SecondMatchState')
expect(calculateNextState({ foo: ['E', 'F'] })).to.equal('DefaultMatchState')
})

it('Should test the state using IsUndefined', () => {
Expand All @@ -94,8 +94,8 @@ describe('Choice tests', function () {
Default: 'DefinedState'
}
)
expect(calculateNextState({foo: undefined})).to.eql('UndefinedState')
expect(calculateNextState({foo: 'HELLO_WORLD'})).to.eql('DefinedState')
expect(calculateNextState({ foo: undefined })).to.eql('UndefinedState')
expect(calculateNextState({ foo: 'HELLO_WORLD' })).to.eql('DefinedState')

const calculateNextState1 = choiceProcessor(
{
Expand All @@ -109,7 +109,7 @@ describe('Choice tests', function () {
Default: 'UndefinedState'
}
)
expect(calculateNextState1({foo: undefined})).to.eql('UndefinedState')
expect(calculateNextState1({foo: 'HELLO_WORLD'})).to.eql('DefinedState')
expect(calculateNextState1({ foo: undefined })).to.eql('UndefinedState')
expect(calculateNextState1({ foo: 'HELLO_WORLD' })).to.eql('DefinedState')
})
})

0 comments on commit 5e3a1e5

Please sign in to comment.