MCPcopy
hub / github.com/rlidwka/sinopia / add_test

Function add_test

test/unit/parse_interval.js:5–15  ·  view source on GitHub ↗
(str, res)

Source from the content-addressed store, hash-verified

3
4describe('Parse interval', function() {
5 function add_test(str, res) {
6 it('parse ' + str, function() {
7 if (res === null) {
8 assert.throws(function() {
9 console.log(parse_interval(str))
10 })
11 } else {
12 assert.strictEqual(parse_interval(str), res)
13 }
14 })
15 }
16
17 add_test(12345, 12345000)
18 add_test('1000', 1000000)

Callers 1

parse_interval.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected