Home Reference Source

stdlib/test/color.js

var assert = require('assert');
Object.assign(global, require("../color.js"));

describe("Color", function() {

	describe("Parse", function() {
		it("should result in the same toString", function() {
			var tests = [
				"My.Schema.Color",
				"Slightly malformed Test",
				"2 3 55 123"
			];
			for(var i = 0; i < tests.length; i++)
				assert.equal(tests[i], Color.parse(tests[i]).toString());
		});
	});

});