renovations
This commit is contained in:
parent
0e9ceb2b3a
commit
150d92f10f
47 changed files with 290 additions and 110 deletions
|
@ -0,0 +1,3 @@
|
|||
function extractCurrencyValue(str) {
|
||||
return +str.slice(1);
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
describe("extractCurrencyValue", function() {
|
||||
|
||||
it("выделяет из строки $120 число 120", function() {
|
||||
assert.strictEqual(extractCurrencyValue('$120'), 120);
|
||||
});
|
||||
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue