Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit843f332

Browse files
committed
update setup example tutorial
1 parentcad8699 commit843f332

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
constaddOne=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
constsubtractOne=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-
constexpect=require('chai').expect;
1+
const{expect}=require('chai');
22

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

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

77
constdivideOne=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
constmultiplyOne=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)

[8]ページ先頭

©2009-2025 Movatter.jp