1 | import makeDeviceId from "../src/FacebookDeviceId"
|
2 |
|
3 | describe("deviceIds", function() {
|
4 | it("makes an uuidv4", function() {
|
5 | const uuid = makeDeviceId()
|
6 |
|
7 | if (
|
8 | !uuid.deviceId.match(
|
9 | /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/
|
10 | )
|
11 | ) {
|
12 | throw new Error("Not an uuid")
|
13 | }
|
14 | })
|
15 | })
|