Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 843f332

Browse files
committed
update setup example tutorial
1 parent cad8699 commit 843f332

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

setup/tutorial/01/01.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ describe('01 addOne', () => {
66

77
const addOne = page.__get__('addOne');
88

9+
it('doesn\t exist', () => {
10+
expect(addOne).to.not.be.undefined;
11+
});
12+
913
it('should take a parameter', () => {
1014
expect(addOne).to.have.length(1);
1115
});

setup/tutorial/01/02.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ describe('02 subtractOne', () => {
22

33
const subtractOne = page.__get__('subtractOne');
44

5+
it('doesn\t exist', () => {
6+
expect(subtractOne).to.not.be.undefined;
7+
});
8+
59
it('should take a parameter', () => {
610
expect(subtractOne).to.have.length(1);
711
});

setup/tutorial/02/01.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
const expect = require('chai').expect;
1+
const { expect } = require('chai');
22

33
const page = require('BASE/page-02');
44

55
describe('01 divideOne', () => {
66

77
const divideOne = page.__get__('divideOne');
88

9+
it('doesn\t exist', () => {
10+
expect(divideOne).to.not.be.undefined;
11+
});
12+
913
it('should take a parameter', () => {
1014
expect(divideOne).to.have.length(1);
1115
});

setup/tutorial/02/02.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ describe('02 multiplyOne', () => {
22

33
const multiplyOne = page.__get__('multiplyOne');
44

5+
it('doesn\t exist', () => {
6+
expect(multiplyOne).to.not.be.undefined;
7+
});
8+
59
it('should take a parameter', () => {
610
expect(multiplyOne).to.have.length(1);
711
});

setup/tutorial/02/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function divideOne(x) {
1515
```
1616
))
1717

18-
+ write a function `mutiplyone` that multiplies a number by 1
18+
+ write a function `mutiplyOne` that multiplies a number by 1
1919
@test('02/02')
2020
@action(insert(
2121
```

0 commit comments

Comments
 (0)