Skip to content

Commit 1a70060

Browse files
committed
test: move to unit dir
1 parent 60a5e6d commit 1a70060

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"clang-format": "clang-format --style=file:.clang-format --Werror -i addon/*",
2222
"check:eslint": "ESLINT_USE_FLAT_CONFIG=false eslint src test",
2323
"check:clang-format": "clang-format --style=file:.clang-format --dry-run --Werror addon/*",
24-
"test": "mocha --v8-expose-gc test",
24+
"test": "mocha --v8-expose-gc test/unit",
2525
"prepare": "tsc",
2626
"rebuild": "node-gyp rebuild",
2727
"prebuild": "prebuild --runtime napi --strip --verbose --all"

test/bindings.test.ts renamed to test/unit/bindings.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import { MongoCrypt, MongoCryptContext, MongoCryptContextCtor } from '../src';
2+
import { MongoCrypt, MongoCryptContext, MongoCryptContextCtor } from '../../src';
33
import { serialize, Binary, Long } from 'bson';
44
import * as crypto from 'crypto';
55

test/crypto.test.ts renamed to test/unit/crypto.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as path from 'node:path';
44
import * as fs from 'node:fs';
55
import * as sinon from 'sinon';
66
import { EJSON, BSON, Binary } from 'bson';
7-
import { MongoCrypt, MongoCryptConstructor, cryptoCallbacks } from '../src';
7+
import { MongoCrypt, MongoCryptConstructor, cryptoCallbacks } from '../../src';
88
import { expect } from 'chai';
99

1010
const NEED_MONGO_KEYS = 3;
@@ -23,7 +23,7 @@ const LOCAL_KEY = new Uint8Array([
2323
const kmsProviders = { local: { key: LOCAL_KEY } };
2424
const algorithm = 'AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic';
2525
const keyDocument = EJSON.parse(
26-
fs.readFileSync(path.join(__dirname, 'benchmarks', 'keyDocument.json'), 'utf8'),
26+
fs.readFileSync(path.join(__dirname, '..', 'benchmarks', 'keyDocument.json'), 'utf8'),
2727
{
2828
relaxed: false
2929
}

test/index.test.ts renamed to test/unit/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect } from 'chai';
2-
import * as bindings from '../src/index';
2+
import * as bindings from '../../src/index';
33

44
describe('index.ts', () => {
55
it('only has three exports', () => {
File renamed without changes.

0 commit comments

Comments
 (0)