Skip to content

Commit 2ec6695

Browse files
committed
move uuid test to TS
1 parent ea9d591 commit 2ec6695

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/node/uuid_tests.js renamed to test/node/uuid.test.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
'use strict';
2-
3-
const { Buffer } = require('buffer');
4-
const { Binary, UUID } = require('../register-bson');
5-
const { inspect } = require('util');
6-
const { validate: uuidStringValidate, version: uuidStringVersion } = require('uuid');
7-
const { BSON, BSONError } = require('../register-bson');
1+
import { Binary, UUID } from '../register-bson';
2+
import { inspect } from 'util';
3+
import { validate as uuidStringValidate, version as uuidStringVersion } from 'uuid';
4+
import { BSON, BSONError } from '../register-bson';
85
const BSON_DATA_BINARY = BSON.BSONType.binData;
9-
const { BSON_BINARY_SUBTYPE_UUID_NEW } = require('../../src/constants');
6+
import { BSON_BINARY_SUBTYPE_UUID_NEW } from '../../src/constants';
7+
import { expect } from 'chai';
108

119
// Test values
1210
const UPPERCASE_DASH_SEPARATED_UUID_STRING = 'AAAAAAAA-AAAA-4AAA-AAAA-AAAAAAAAAAAA';

0 commit comments

Comments
 (0)