Debian Codegraph @

color-support/test/browser.js

raw symbols SCIP
1 var colorSupport = require('../browser.js')
2 var t = require('tap')
3
4 // t.match() gets confused by functions
5 t.match(Object.create(colorSupport), {
6 level: 0,
7 hasBasic: false,
8 has256: false,
9 has16m: false
10 })
11
12 t.match(colorSupport({ alwaysReturn: true }), {
13 level: 0,
14 hasBasic: false,
15 has256: false,
16 has16m: false
17 })
18
19 t.equal(colorSupport(), false)