11 lines
222 B
TypeScript
11 lines
222 B
TypeScript
import test from 'ava';
|
|
import { Color } from '../lib';
|
|
|
|
test ('serialize', (t) => {
|
|
const wh = Color.white;
|
|
const tr = Color.transparent;
|
|
|
|
t.is (wh.toString (), '#ffffff');
|
|
t.is (tr.toString (), '#00000000');
|
|
});
|