File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import mssql from "mssql" ;
2
- import { MSSQL_CREDENTIALS } from "../.env.test.mjs " ;
2
+ import { MSSQL_CREDENTIALS } from "../.env.test.js " ;
3
3
4
- const credentials = MSSQL_CREDENTIALS
4
+ const credentials = MSSQL_CREDENTIALS ;
5
5
6
6
const seed = async ( ) => {
7
7
await mssql . connect ( credentials ) ;
@@ -18,7 +18,7 @@ const seed = async () => {
18
18
BEGIN
19
19
CREATE LOGIN reader WITH PASSWORD = 're@derP@ssw0rd'
20
20
CREATE USER reader FOR LOGIN reader
21
- END`
21
+ END` ;
22
22
} ;
23
23
24
24
seed ( )
28
28
} )
29
29
. catch ( ( err ) => {
30
30
console . error ( err . message , err ) ;
31
- process . exit ( 1 )
31
+ process . exit ( 1 ) ;
32
32
} ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ services:
9
9
- .env.test
10
10
networks :
11
11
- db_proxy_test
12
- command : sh -c "set -o pipefail && wait-on -d 10000 -t 30000 tcp:mssql:1433 && node ./data/seed.mssql.mjs && TZ=UTC NODE_ENV=TEST node_modules/.bin/mocha"
12
+ command : sh -c "set -o pipefail && wait-on -d 10000 -t 30000 tcp:mssql:1433 && node ./data/seed.mssql.js && TZ=UTC NODE_ENV=TEST node_modules/.bin/mocha"
13
13
14
14
mssql :
15
15
image : mcr.microsoft.com/mssql/server:2019-latest
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import {expect} from "chai";
2
2
import MockReq from "mock-req" ;
3
3
import MockRes from "mock-res" ;
4
4
5
- import { MSSQL_CREDENTIALS , MSSQL_CREDENTIALS_READ_ONLY } from "../.env.test.mjs " ;
6
- import mssql from "../lib/mssql" ;
5
+ import { MSSQL_CREDENTIALS , MSSQL_CREDENTIALS_READ_ONLY } from "../.env.test.js " ;
6
+ import mssql from "../lib/mssql.js " ;
7
7
8
8
const credentials = MSSQL_CREDENTIALS ;
9
9
const readOnlyCredentials = MSSQL_CREDENTIALS_READ_ONLY ;
You can’t perform that action at this time.
0 commit comments