8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb46928 commit 0f9b1caCopy full SHA for 0f9b1ca
test/test_validation.js
@@ -6,11 +6,11 @@ var assert = require("assert"),
6
vsprintf = sprintfjs.vsprintf
7
8
function should_throw(format,args,err) {
9
- assert.throws(function(){ vsprintf(format,args) }, err)
+ assert.throws(function() { vsprintf(format,args) }, err)
10
}
11
12
function should_not_throw(format,args) {
13
- assert.doesNotThrow(function(){ vsprintf(format,args)})
+ assert.doesNotThrow(function() { vsprintf(format,args) })
14
15
16
describe("sprintfjs", function() {
@@ -37,12 +37,11 @@ describe("sprintfjs", function() {
37
})
38
39
it(fmt + " should not throw TypeError for something implicitly castable to number", function() {
40
- should_not_throw(fmt, [1/0] )
+ should_not_throw(fmt, [1/0])
41
should_not_throw(fmt, [true])
42
should_not_throw(fmt, [[1]])
43
should_not_throw(fmt, ["200"])
44
should_not_throw(fmt, [null])
45
46
47
-
48
0 commit comments