Quellcode durchsuchen

- Fix tests

tags/1.5.4
Bart Van Houtte vor 4 Jahren
Ursprung
Commit
c5de1fd06c
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. +3
    -3
      src/js/utils/test/colors.test.js

+ 3
- 3
src/js/utils/test/colors.test.js Datei anzeigen

@@ -3,12 +3,12 @@ const colors = require('../colors');


describe('utils.colors', () => { describe('utils.colors', () => {
it('should return #aaabac for RGB()', () => { it('should return #aaabac for RGB()', () => {
assert.equal(colors.getColor('rgb(170, 171, 172)', '#aaabac'));
assert.equal(colors.getColor('rgb(170, 171, 172)'), '#aaabac');
}); });
it('should return #ff5858 for the named color red', () => { it('should return #ff5858 for the named color red', () => {
assert.equal(colors.getColor('red', '#ff5858d'));
assert.equal(colors.getColor('red'), '#ff5858d');
}); });
it('should return #1a5c29 for the hex color #1a5c29', () => { it('should return #1a5c29 for the hex color #1a5c29', () => {
assert.equal(colors.getColor('#1a5c29', '#1a5c29'));
assert.equal(colors.getColor('#1a5c29'), '#1a5c29');
}); });
}); });

Laden…
Abbrechen
Speichern