Skip to content
Permalink
Browse files

build(dev-deps): Move to standard 12.0.1

  • Loading branch information...
jezhiggins committed Sep 5, 2018
1 parent 3d4c445 commit 5e3a1e5b2d712e6320ebdf94527091f355aa3fb1
Showing with 14 additions and 14 deletions.
  1. +1 −1 package.json
  2. +13 −13 test/tests.js
@@ -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"
},
@@ -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)
})

@@ -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 () {
@@ -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', () => {
@@ -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(
{
@@ -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.
You can’t perform that action at this time.