UNPKG

simple-color-functions

Version:
13 lines (9 loc) 332 B
import { isShortNotation } from '../lib/isShortNotation'; it('should return true if color short', () => { const actual = isShortNotation('#aaa'); expect(actual).toEqual(true); }); it('should return false if color isn`t short', () => { const actual = isShortNotation('#aab3cc'); expect(actual).toEqual(false); });