Files
DefinitelyTyped/types/jdenticon/jdenticon-tests.ts
2017-07-25 10:34:23 -07:00

12 lines
260 B
TypeScript

import { jdenticon } from "jdenticon";
function testJdenticon() {
if (typeof jdenticon.version !== 'string') {
throw '.version should be of string type.';
}
jdenticon.update('#jdenticon', 'd6d7705392bc7af633328bea8c4c6904', 8);
}
testJdenticon();