Skip to content

Commit 26817c7

Browse files
committed
Move app tests to all be at the same level of nesting
1 parent 07905a5 commit 26817c7

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

test/app.test.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -36,37 +36,37 @@ describe("app", function() {
3636
})
3737
.run();
3838
});
39+
});
3940

40-
describe("when the user asks to see the menu again", function() {
41-
it("should show the menu again", function() {
42-
return tester
43-
.setup.user.state('states:start')
44-
.input('1')
45-
.check.interaction({
46-
state: 'states:start',
47-
reply: [
48-
'Hi there! What do you want to do?',
49-
'1. Show this menu again',
50-
'2. Exit'
51-
].join('\n')
52-
})
53-
.run();
54-
});
41+
describe("when the user asks to see the menu again", function() {
42+
it("should show the menu again", function() {
43+
return tester
44+
.setup.user.state('states:start')
45+
.input('1')
46+
.check.interaction({
47+
state: 'states:start',
48+
reply: [
49+
'Hi there! What do you want to do?',
50+
'1. Show this menu again',
51+
'2. Exit'
52+
].join('\n')
53+
})
54+
.run();
5555
});
56+
});
5657

57-
describe("when the user asks to exit", function() {
58-
it("should say thank you and end the session", function() {
59-
return tester
60-
.setup.user.state('states:start')
61-
.input('2')
62-
.check.interaction({
63-
state: 'states:start',
64-
reply: [
65-
'Thanks, cheers!'
66-
].join('\n')
67-
})
68-
.run();
69-
});
58+
describe("when the user asks to exit", function() {
59+
it("should say thank you and end the session", function() {
60+
return tester
61+
.setup.user.state('states:start')
62+
.input('2')
63+
.check.interaction({
64+
state: 'states:start',
65+
reply: [
66+
'Thanks, cheers!'
67+
].join('\n')
68+
})
69+
.run();
7070
});
7171
});
7272
});

0 commit comments

Comments
 (0)