18 lines
453 B
TypeScript
Raw Normal View History

2020-05-17 17:17:39 +02:00
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of graphviz-builder which is released under MIT.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@scode.ovh>, May 2020
*/
2020-04-24 17:01:26 +02:00
import test from 'ava';
import { Color } from '../lib';
test ('serialize', (t) => {
const wh = Color.white;
const tr = Color.transparent;
2020-04-28 11:26:21 +02:00
2020-04-24 17:01:26 +02:00
t.is (wh.toString (), '#ffffff');
t.is (tr.toString (), '#00000000');
});