Comparing version 0.0.1 to 0.1.0
@@ -7,3 +7,8 @@ 'use strict'; | ||
analyse: { | ||
server: [ '**/*.js', '!node_modules/**/*.js' ] | ||
server: [ '**/*.js', '!node_modules/**/*.js', '!coverage/**/*.js' ], | ||
options: { | ||
server: { | ||
language: 'es5' | ||
} | ||
} | ||
}, | ||
@@ -10,0 +15,0 @@ test: { |
{ | ||
"name": "boolean", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "boolean converts lots of things to boolean.", | ||
@@ -18,5 +18,5 @@ "contributors": [ | ||
"devDependencies": { | ||
"assertthat": "0.5.3", | ||
"grunt": "0.4.5", | ||
"node-assertthat": "0.2.3", | ||
"tourism": "0.9.4" | ||
"tourism": "0.14.1" | ||
}, | ||
@@ -27,3 +27,7 @@ "repository": { | ||
}, | ||
"keywords": [ | ||
"boolean", | ||
"parser" | ||
], | ||
"license": "MIT" | ||
} |
@@ -5,2 +5,4 @@ # boolean | ||
[![Circle CI](https://circleci.com/gh/thenativeweb/boolean.svg?style=svg)](https://circleci.com/gh/thenativeweb/boolean) | ||
## Installation | ||
@@ -7,0 +9,0 @@ |
'use strict'; | ||
var assert = require('node-assertthat'); | ||
var assert = require('assertthat'); | ||
@@ -9,3 +9,3 @@ var boolean = require('../lib/boolean'); | ||
test('is a function.', function (done) { | ||
assert.that(boolean, is.ofType('function')); | ||
assert.that(boolean).is.ofType('function'); | ||
done(); | ||
@@ -16,3 +16,3 @@ }); | ||
test('returns false.', function (done) { | ||
assert.that(boolean(undefined), is.false()); | ||
assert.that(boolean(undefined)).is.false(); | ||
done(); | ||
@@ -24,3 +24,3 @@ }); | ||
test('returns false.', function (done) { | ||
assert.that(boolean(null), is.false()); | ||
assert.that(boolean(null)).is.false(); | ||
done(); | ||
@@ -32,3 +32,3 @@ }); | ||
test('true returns true.', function (done) { | ||
assert.that(boolean(true), is.true()); | ||
assert.that(boolean(true)).is.true(); | ||
done(); | ||
@@ -38,3 +38,3 @@ }); | ||
test('false returns false.', function (done) { | ||
assert.that(boolean(false), is.false()); | ||
assert.that(boolean(false)).is.false(); | ||
done(); | ||
@@ -46,3 +46,3 @@ }); | ||
test('"true" returns true.', function (done) { | ||
assert.that(boolean('true'), is.true()); | ||
assert.that(boolean('true')).is.true(); | ||
done(); | ||
@@ -52,3 +52,3 @@ }); | ||
test('"false" returns false.', function (done) { | ||
assert.that(boolean('false'), is.false()); | ||
assert.that(boolean('false')).is.false(); | ||
done(); | ||
@@ -58,3 +58,3 @@ }); | ||
test('"TRUE" returns true.', function (done) { | ||
assert.that(boolean('TRUE'), is.true()); | ||
assert.that(boolean('TRUE')).is.true(); | ||
done(); | ||
@@ -64,3 +64,3 @@ }); | ||
test('"FALSE" returns false.', function (done) { | ||
assert.that(boolean('FALSE'), is.false()); | ||
assert.that(boolean('FALSE')).is.false(); | ||
done(); | ||
@@ -70,3 +70,3 @@ }); | ||
test('"t" returns true.', function (done) { | ||
assert.that(boolean('t'), is.true()); | ||
assert.that(boolean('t')).is.true(); | ||
done(); | ||
@@ -76,3 +76,3 @@ }); | ||
test('"f" returns false.', function (done) { | ||
assert.that(boolean('f'), is.false()); | ||
assert.that(boolean('f')).is.false(); | ||
done(); | ||
@@ -82,3 +82,3 @@ }); | ||
test('"T" returns true.', function (done) { | ||
assert.that(boolean('T'), is.true()); | ||
assert.that(boolean('T')).is.true(); | ||
done(); | ||
@@ -88,3 +88,3 @@ }); | ||
test('"F" returns false.', function (done) { | ||
assert.that(boolean('F'), is.false()); | ||
assert.that(boolean('F')).is.false(); | ||
done(); | ||
@@ -94,3 +94,3 @@ }); | ||
test('"yes" returns true.', function (done) { | ||
assert.that(boolean('yes'), is.true()); | ||
assert.that(boolean('yes')).is.true(); | ||
done(); | ||
@@ -100,3 +100,3 @@ }); | ||
test('"no" returns false.', function (done) { | ||
assert.that(boolean('no'), is.false()); | ||
assert.that(boolean('no')).is.false(); | ||
done(); | ||
@@ -106,3 +106,3 @@ }); | ||
test('"YES" returns true.', function (done) { | ||
assert.that(boolean('YES'), is.true()); | ||
assert.that(boolean('YES')).is.true(); | ||
done(); | ||
@@ -112,3 +112,3 @@ }); | ||
test('"NO" returns false.', function (done) { | ||
assert.that(boolean('NO'), is.false()); | ||
assert.that(boolean('NO')).is.false(); | ||
done(); | ||
@@ -118,3 +118,3 @@ }); | ||
test('"y" returns true.', function (done) { | ||
assert.that(boolean('y'), is.true()); | ||
assert.that(boolean('y')).is.true(); | ||
done(); | ||
@@ -124,3 +124,3 @@ }); | ||
test('"n" returns false.', function (done) { | ||
assert.that(boolean('n'), is.false()); | ||
assert.that(boolean('n')).is.false(); | ||
done(); | ||
@@ -130,3 +130,3 @@ }); | ||
test('"Y" returns true.', function (done) { | ||
assert.that(boolean('Y'), is.true()); | ||
assert.that(boolean('Y')).is.true(); | ||
done(); | ||
@@ -136,3 +136,3 @@ }); | ||
test('"N" returns false.', function (done) { | ||
assert.that(boolean('N'), is.false()); | ||
assert.that(boolean('N')).is.false(); | ||
done(); | ||
@@ -142,3 +142,3 @@ }); | ||
test('"1" returns true.', function (done) { | ||
assert.that(boolean('1'), is.true()); | ||
assert.that(boolean('1')).is.true(); | ||
done(); | ||
@@ -148,3 +148,3 @@ }); | ||
test('"0" returns false.', function (done) { | ||
assert.that(boolean('0'), is.false()); | ||
assert.that(boolean('0')).is.false(); | ||
done(); | ||
@@ -156,3 +156,3 @@ }); | ||
test('1 returns true.', function (done) { | ||
assert.that(boolean(1), is.true()); | ||
assert.that(boolean(1)).is.true(); | ||
done(); | ||
@@ -162,3 +162,3 @@ }); | ||
test('0 returns false.', function (done) { | ||
assert.that(boolean(0), is.false()); | ||
assert.that(boolean(0)).is.false(); | ||
done(); | ||
@@ -165,0 +165,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7054
7
141
57