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

Commitc153007

Browse files
committed
stylistic changes to map tests
1 parent023c08a commitc153007

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

‎map/map-test.js‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import'locus'
22
import{expect}from'chai'
3-
describe('map tests',()=>{
43

5-
it.skip('test you can upcase all strings',()=>{
4+
describe.skip('map tests',()=>{
5+
it('test you can upcase all strings',()=>{
66
constwords=['meeka','jhun','brenna','steve'];
7-
constupperCaseWords=words.map((word)=>word.toUpperCase());
7+
8+
constupperCaseWords=words.map(word=>word.toUpperCase());
9+
810
expect(upperCaseWords).to.deep.equal(['MEEKA','JHUN','BRENNA','STEVE']);
911
});
1012

1113
it.skip('should allow you to allow you to double numbers',()=>{
12-
constnumbers=[1,2,3,4,5,6];
14+
constnumbers=[1,2,3,4,5,6];
1315

14-
constdoubleNumbers=numbers.map((number)=>{
15-
// your code goes here
16-
});
17-
expect(doubleNumbers).to.deep.equal([2,4,6,8,10,12]);
16+
constdoubleNumbers=numbers.map(number=>)
17+
expect(doubleNumbers).to.deep.equal([2,4,6,8,10,12]);
1818
});
1919

2020
it.skip('should square the numbers',()=>{

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main":"index.js",
66
"scripts": {
77
"test":"mocha --compilers js:babel-core/register",
8-
"test-all":"mocha --compilers js:babel-core/register map filter reduce"
8+
"test-all":"mocha --compilers js:babel-core/register map filter reduce"
99
},
1010
"keywords": [
1111
"mocha",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp