-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename expected export to decodedValue (#61)
Follows exercism/javascript#792 Follows exercism/exercism#5131 The fixtures have to be updated because analyzers don't support versioning yet.
- Loading branch information
1 parent
8c1122b
commit 50e9d0c
Showing
503 changed files
with
2,123 additions
and
2,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@exercism/javascript-analyzer", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Exercism analyzer for javascript", | ||
"repository": "https://github.com/exercism/javascript-analyzer", | ||
"author": "Derk-Jan Karrenbeld <[email protected]>", | ||
|
@@ -24,25 +24,25 @@ | |
"posttest": "yarn lint" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.6.0", | ||
"@babel/preset-env": "^7.6.0", | ||
"@babel/preset-typescript": "^7.6.0", | ||
"@types/jest": "^24.0.18", | ||
"@types/node": "^12.7.5", | ||
"@types/yargs": "^13.0.2", | ||
"@typescript-eslint/eslint-plugin": "^2.3.0", | ||
"@babel/core": "^7.7.5", | ||
"@babel/preset-env": "^7.7.6", | ||
"@babel/preset-typescript": "^7.7.4", | ||
"@types/jest": "^24.0.23", | ||
"@types/node": "^12.12.17", | ||
"@types/yargs": "^13.0.3", | ||
"@typescript-eslint/eslint-plugin": "^2.11.0", | ||
"babel-jest": "^24.9.0", | ||
"eslint": "^6.4.0", | ||
"eslint-plugin-jest": "^22.17.0", | ||
"eslint": "^6.7.2", | ||
"eslint-plugin-jest": "^23.1.1", | ||
"jest": "^24.9.0" | ||
}, | ||
"dependencies": { | ||
"@typescript-eslint/parser": "^2.3.1", | ||
"@typescript-eslint/typescript-estree": "^2.3.1", | ||
"@typescript-eslint/parser": "^2.11.0", | ||
"@typescript-eslint/typescript-estree": "^2.11.0", | ||
"esm": "^3.2.25", | ||
"module-alias": "^2.2.1", | ||
"yargs": "^14.0.0", | ||
"typescript": "^3.6.3" | ||
"module-alias": "^2.2.2", | ||
"yargs": "^15.0.2", | ||
"typescript": "^3.7.3" | ||
}, | ||
"_moduleAliases": { | ||
"~src": "dist", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
test/fixtures/resistor-color-duo/1/resistor-color-duo.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import { value } from './resistor-color-duo.js'; | ||
import { decodedValue } from './resistor-color-duo.js'; | ||
|
||
describe('Resistor Colors', () => { | ||
test('Brown and black', () => { | ||
expect(value(['brown', 'black'])).toEqual(10); | ||
expect(decodedValue(['brown', 'black'])).toEqual(10); | ||
}); | ||
|
||
test('Blue and grey', () => { | ||
expect(value(['blue', 'grey'])).toEqual(68); | ||
expect(decodedValue(['blue', 'grey'])).toEqual(68); | ||
}); | ||
|
||
test('Yellow and violet', () => { | ||
expect(value(['yellow', 'violet'])).toEqual(47); | ||
expect(decodedValue(['yellow', 'violet'])).toEqual(47); | ||
}); | ||
|
||
test('Orange and orange', () => { | ||
expect(value(['orange', 'orange'])).toEqual(33); | ||
expect(decodedValue(['orange', 'orange'])).toEqual(33); | ||
}); | ||
}); |
Oops, something went wrong.