summaryrefslogtreecommitdiffstats
path: root/services/common/tests/unit/test_utils_uuid.js
blob: f1eabf50e485f7d368752bb71465ce15f3cec490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

function run_test() {
  let uuid = CommonUtils.generateUUID();
  do_check_eq(uuid.length, 36);
  do_check_eq(uuid[8], "-");

  run_next_test();
}