Homogeneize layout, drop palette

This commit is contained in:
jdescottes
2014-09-18 07:18:07 +02:00
parent 8ebdc4cd41
commit 508fb79c32
21 changed files with 245 additions and 202 deletions

View File

@ -73,7 +73,7 @@ describe("Palette Service", function() {
expect(retrievedPalette.id).toBe(paletteId);
expect(retrievedPalette.name).toBe(paletteName);
var colors = retrievedPalette.colors;
var colors = retrievedPalette.getColors();
expect(Array.isArray(colors)).toBe(true);
expect(colors.length).toBe(1);
@ -97,7 +97,7 @@ describe("Palette Service", function() {
expect(palettes.length).toBe(1);
var retrievedPalette = paletteService.getPaletteById(paletteId);
var color = retrievedPalette.colors[0];
var color = retrievedPalette.get(0);
expect(color).toBe(paletteColor2);
});