simple-color-functions
Version:
A set of simple color functions.
13 lines (9 loc) • 332 B
text/typescript
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);
});