Skip to content

Commit aa37de9

Browse files
committed
test(NODE-7202): migrate to typescript
1 parent 1702987 commit aa37de9

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

test/integration/crud/server_errors.test.js renamed to test/integration/crud/server_errors.test.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
'use strict';
2-
const { setupDatabase } = require('../shared');
3-
const chai = require('chai');
1+
import { expect } from 'chai';
42

5-
const expect = chai.expect;
6-
const sinonChai = require('sinon-chai');
7-
const { MongoServerError } = require('../../mongodb');
8-
9-
chai.use(sinonChai);
3+
import { MongoServerError } from '../../mongodb';
4+
import { setupDatabase } from '../shared';
105

116
describe('Errors', function () {
127
before(function () {

0 commit comments

Comments
 (0)