Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
share
/
nodejs
/
fast-glob
/
out
/
utils
📤 Upload
📝 New File
📁 New Folder
Close
Editing: string.spec.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const util = require("./string"); describe('Utils → String', () => { describe('.isString', () => { it('should return true', () => { const actual = util.isString(''); assert.ok(actual); }); it('should return false', () => { const actual = util.isString(undefined); assert.ok(!actual); }); }); describe('.isEmpty', () => { it('should return true', () => { const actual = util.isEmpty(''); assert.ok(actual); }); it('should return false', () => { const actual = util.isEmpty('string'); assert.ok(!actual); }); }); });
Save
Cancel