Files
DefinitelyTyped/jdenticon/jdenticon-tests.ts
Martin Thorsen Ranang b56627a8f9 Adding type definitions for jdenticon version 1.3.2. (#12470)
* Adding type definitions for jdenticon version 1.3.2.

* Updated import statement in test.

* Another attempt, as I presumably misunderstood @vvakame's tip.
2016-11-13 18:40:38 +09:00

12 lines
258 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();