Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
onury committed Dec 7, 2017
1 parent 11dbff5 commit a500529
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/unit.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const invert = require('../dist/.invert.cov.js');
const invert = require('../src/index.js');

/**
* Test Suite
Expand All @@ -19,7 +19,7 @@ describe('test: invert-color', () => {
const O_CUSTOM_WHITE = { r: 250, g: 250, b: 250 };
const CUSTOM_BW_COLORS = {
black: CUSTOM_BLACK,
white: CUSTOM_WHITE,
white: CUSTOM_WHITE
};

test('invert & match photoshop inverted colors', () => {
Expand Down Expand Up @@ -110,6 +110,8 @@ describe('test: invert-color', () => {
expect(invert('#52838b', true)).toEqual('#000000');
expect(invert('#000', true)).toEqual('#ffffff');
expect(invert('#fff', true)).toEqual('#000000');
expect(invert('#ffffff', true)).toEqual('#000000');
console.log(invert('#ffffff', false));
});

test('invert to custom black and white colors', () => {
Expand Down

0 comments on commit a500529

Please sign in to comment.