Skip to content

Commit 3976e33

Browse files
committed
Add tests
1 parent c5a39c9 commit 3976e33

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"author": "Jakob Krigovsky <[email protected]>",
1313
"repository": "sonicdoe/css-color-keywords",
1414
"scripts": {
15-
"test": "standard"
15+
"test": "standard && node test.js"
1616
},
1717
"devDependencies": {
1818
"standard": "^8.6.0"

test.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict'
2+
3+
const assert = require('assert')
4+
const cssColorKeywords = require('.')
5+
6+
assert.strictEqual(cssColorKeywords.black, '#000000')
7+
assert.strictEqual(cssColorKeywords.orange, '#ffa500')

0 commit comments

Comments
 (0)