Palette creator can save palettes to local storage

This commit is contained in:
jdescottes
2014-09-06 12:37:11 +02:00
parent e8db80a0ec
commit 8441f28ac1
25 changed files with 603 additions and 846 deletions

27
test/js/utils/UuidTest.js Normal file
View File

@ -0,0 +1,27 @@
describe("UUID Generator", function() {
beforeEach(function() {});
afterEach(function() {});
it("returns valid uuids", function() {
// when
// then
var uuid1 = pskl.utils.Uuid.generate();
var uuid2 = pskl.utils.Uuid.generate();
// verify
expect(typeof uuid1).toBe("string");
expect(uuid1.length).toBe(36);
var splits = uuid1.split('-');
expect(splits.length).toBe(5);
expect(splits[0].length).toBe(8);
expect(splits[1].length).toBe(4);
expect(splits[2].length).toBe(4);
expect(splits[3].length).toBe(4);
expect(splits[4].length).toBe(12);
expect(uuid1).not.toBe(uuid2);
});
});