Skip to content

Commit 450abcf

Browse files
committed
test(add-state-machine): Correct tests for reindex in update state machine
1 parent 6d268bb commit 450abcf

47 files changed

Lines changed: 920 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/add-state-machine-test.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,20 @@ describe('tymly add-state-machine', () => {
2222
'N', // reindex
2323
''
2424
],
25-
'update': [
25+
'update with reindex': [
2626
helpers.down,
2727
'', // default title
2828
'', // default description
2929
'', // default role
30+
'Y',
31+
''
32+
],
33+
'update no reindex': [
34+
helpers.down,
35+
'', // default title
36+
'', // default description
37+
'', // default role
38+
'N',
3039
''
3140
],
3241
'two-forms-no-meta': [
@@ -43,6 +52,7 @@ describe('tymly add-state-machine', () => {
4352
'', // default title
4453
'Pizza for everyone!',
4554
' ', // $everyone role
55+
'N',
4656
'futz-around-with-pizza'
4757
]
4858
}

test/fixtures/add-state-machine/expected/update/.gitignore renamed to test/fixtures/add-state-machine/expected/update-no-reindex/.gitignore

File renamed without changes.

test/fixtures/add-state-machine/expected/update/.releaserc.json renamed to test/fixtures/add-state-machine/expected/update-no-reindex/.releaserc.json

File renamed without changes.

test/fixtures/add-state-machine/expected/update/.travis.yml renamed to test/fixtures/add-state-machine/expected/update-no-reindex/.travis.yml

File renamed without changes.

test/fixtures/add-state-machine/expected/update/LICENSE renamed to test/fixtures/add-state-machine/expected/update-no-reindex/LICENSE

File renamed without changes.

test/fixtures/add-state-machine/expected/update/README.md renamed to test/fixtures/add-state-machine/expected/update-no-reindex/README.md

File renamed without changes.

test/fixtures/add-state-machine/expected/update/blueprint.json renamed to test/fixtures/add-state-machine/expected/update-no-reindex/blueprint.json

File renamed without changes.

test/fixtures/add-state-machine/expected/update/card-templates/pizza-editing-form.json renamed to test/fixtures/add-state-machine/expected/update-no-reindex/card-templates/pizza-editing-form.json

File renamed without changes.

test/fixtures/add-state-machine/expected/update/categories/pizza.json renamed to test/fixtures/add-state-machine/expected/update-no-reindex/categories/pizza.json

File renamed without changes.

test/fixtures/add-state-machine/expected/update/index.js renamed to test/fixtures/add-state-machine/expected/update-no-reindex/index.js

File renamed without changes.

0 commit comments

Comments
 (0)