mirror of
https://github.com/visgl/luma.gl.git
synced 2026-01-25 14:08:58 +00:00
9 lines
262 B
TypeScript
9 lines
262 B
TypeScript
import {uid} from '@luma.gl/core';
|
|
import test from 'tape-promise/tape';
|
|
|
|
test('Utils#uid', (t) => {
|
|
t.ok(typeof uid() === 'string', 'Type of uid() is correct');
|
|
t.equal(uid('prefix').indexOf('prefix'), 0, 'uid("prefix") starts with prefix');
|
|
t.end();
|
|
});
|