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

Commit7bf4d90

Browse files
committed
added read me and removed skips
1 parent7c31f9d commit7bf4d90

File tree

4,876 files changed

+1382
-289293
lines changed

Some content is hidden

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

4,876 files changed

+1382
-289293
lines changed

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#JS-Enums
2+
This repository is to to help you with your`Array.Prototype` chops. The objective is to get each test to pass.
3+
4+
##How To
5+
6+
Make sure that you`npm install` to get all your dependencies. After you've done that you can run`npm test` to run all of your tests. Alternatively if you have`mocha` installed globally you can simply run`mocha [name of test folder]` and it will run your tests.
7+
8+
Once you get a test to pass make sure you unskip it.

‎filter/filter-test.js‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,49 @@ const expect = require('chai').expect
33

44
describe('filter tests',()=>{
55

6-
it('should pick the even numbers ',()=>{
7-
letnumbers=[1,2,3,4,5,6,7,8,9,10]
6+
it.skip('should pick the even numbers ',()=>{
7+
constnumbers=[1,2,3,4,5,6,7,8,9,10]
88
// your code goes here
99
expect(results).to.deep.equal([2,4,6,8,10])
1010
});
1111

12-
it('should pick the odd numbers ',()=>{
13-
letnumbers=[1,2,3,4,5,6,7,8,9,10]
12+
it.skip('should pick the odd numbers ',()=>{
13+
constnumbers=[1,2,3,4,5,6,7,8,9,10]
1414

1515
// your code goes here
1616

1717
expect(results).to.deep.equal([1,3,5,7,9])
1818
});
1919

20-
it('should pick wordfs with threeletteres ',()=>{
21-
letwords=["pill","bad","finger","cat","blue","dog","table","red"]
20+
it.skip('should pick wordfs with threeconstteres ',()=>{
21+
constwords=["pill","bad","finger","cat","blue","dog","table","red"]
2222

2323
// your code goes here
2424

2525
expect(results).to.deep.equal(["bad","cat","dog","red"])
2626
});
2727

28-
it('should pick arrays only',()=>{
29-
letelements=["CAT",["dog"],23,[56,3,8],"AIMLESS",43,"butter"]
28+
it.skip('should pick arrays only',()=>{
29+
constelements=["CAT",["dog"],23,[56,3,8],"AIMLESS",43,"butter"]
3030

3131
// your code goes here
3232

3333
expect(results).to.deep.equal([["dog"],[56,3,8]])
3434
});
3535

36-
it('should remove specific array from object',()=>{
37-
lethuman={name:'yung-jhun',songs:[['cool song 1',50],['cool song 2',100],['cool song 3',90]]}
38-
lettracker={person:human}
39-
letsaying='cool song 2'
36+
it.skip('should remove specific array from object',()=>{
37+
consthuman={name:'yung-jhun',songs:[['cool song 1',50],['cool song 2',100],['cool song 3',90]]}
38+
consttracker={person:human}
39+
constsaying='cool song 2'
4040

4141
// your code goes here.
4242

4343
expect(human.songs).to.deep.equal([['cool song 1',50],['cool song 3',90]])
4444
});
4545

46-
it('should filter based off of strings from user ',()=>{
47-
letuserString='su'
48-
letmessages=[{user:'louisa',message:'haaaaa'},
46+
it.skip('should filter based off of strings from user ',()=>{
47+
constuserString='su'
48+
constmessages=[{user:'louisa',message:'haaaaa'},
4949
{user:'yung-jhun',message:'kewl dude'},
5050
{user:'alter-nate',message:'suh kewl'},
5151
{user:'meeka',message:'adfasuhlkj'},
@@ -58,14 +58,14 @@ describe('filter tests', () => {
5858
{user:'robbie',message:'im super loud'}])
5959
});
6060

61-
it('should return the correct ids',()=>{
62-
letdata=[{account:'person 1',id:'00112'},
61+
it.skip('should return the correct ids',()=>{
62+
constdata=[{account:'person 1',id:'00112'},
6363
{account:'person 2',id:'00045'},
6464
{account:'person 3',id:'12309'},
6565
{account:'person 4',id:'55931'},
6666
{account:'person 5',id:'90215'}];
6767

68-
letids=['00112','90215','12309']
68+
constids=['00112','90215','12309']
6969

7070
// your code goes here
7171

‎map/map-test.js‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,30 @@ const expect = require('chai').expect
44
describe('map tests',()=>{
55

66
it('test you can upcase all strings',()=>{
7-
letwords=['meeka','jhun','brenna','steve']
8-
letupperCaseWords=words.map((word)=>{
9-
returnword.toUpperCase()
10-
})
7+
constwords=['meeka','jhun','brenna','steve']
8+
constupperCaseWords=words.map((word)=>word.toUpperCase())
119
expect(upperCaseWords).to.deep.equal(['MEEKA','JHUN','BRENNA','STEVE'])
1210
})
1311

1412
it.skip('should allow you to allow you to double numbers',()=>{
15-
letnumbers=[1,2,3,4,5,6]
13+
constnumbers=[1,2,3,4,5,6]
1614

17-
letdoubleNumbers=numbers.map((number)=>{
15+
constdoubleNumbers=numbers.map((number)=>{
1816
// your code goes here
1917
})
2018
expect(doubleNumbers).to.deep.equal([2,4,6,8,10,12]);
2119
});
2220

2321
it.skip('should square the numbers',()=>{
24-
letnumbers=[1,2,3,4,5,6]
22+
constnumbers=[1,2,3,4,5,6]
2523

2624
// your code goes here
2725

2826
expect(squareNumbers).to.deep.equal([1,4,9,16,25,36]);
2927
})
3028

3129
it.skip('should reverse the strings',()=>{
32-
letstrings=["alice","bob","charlie","david","eve"]
30+
conststrings=["alice","bob","charlie","david","eve"]
3331

3432
// your code goes here.
3533

@@ -39,24 +37,24 @@ describe('map tests', () => {
3937
})
4038

4139
it.skip('should add key of swag to every object',()=>{
42-
letarrayOfObjects=[{name:'jhun'},{name:'louisa'}]
40+
constarrayOfObjects=[{name:'jhun'},{name:'louisa'}]
4341

4442
// your code goes here
4543

4644
expect(newObjects[0].swag).to.deep.equal(true)
4745
expect(newObjects[1].swag).to.deep.equal(true)
4846
})
4947

50-
it.skip('should return an array with the lastletter of each string',()=>{
51-
letnames=['meeka','jhun','brenna','steve']
48+
it.skip('should return an array with the lastconstter of each string',()=>{
49+
constnames=['meeka','jhun','brenna','steve']
5250

5351
// your code goes here
5452

5553
expect(lastLetters).to.deep.equal(['a','n','a','e'])
5654
});
5755

5856
it.skip('should transform a large object into an array of objects',()=>{
59-
letlargeObject={key1:{name:'jhun',location:'CA'},key2:{name:'brenna',location:'MN'},key3:{name:'louisa',location:'CO'}}
57+
constlargeObject={key1:{name:'jhun',location:'CA'},key2:{name:'brenna',location:'MN'},key3:{name:'louisa',location:'CO'}}
6058

6159
// your code goes here
6260
expect(array).length.equal(3)

‎node_modules/.bin/_mocha‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎node_modules/.bin/babylon‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎node_modules/.bin/jsesc‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎node_modules/.bin/json5‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎node_modules/.bin/loose-envify‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎node_modules/.bin/mkdirp‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎node_modules/.bin/mocha‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp