Skip to content

Commit 3357263

Browse files
committed
style: format source
1 parent 08ec981 commit 3357263

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

src/REST.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { describe, it, afterEach } from 'node:test'
2-
import assert from 'node:assert/strict'
31
import { runFolder } from '@bifravst/bdd-markdown'
2+
import nock from 'nock'
3+
import assert from 'node:assert/strict'
44
import path from 'node:path'
5+
import { afterEach, describe, it } from 'node:test'
56
import { fileURLToPath } from 'node:url'
67
import { steps } from './REST.js'
7-
import nock from 'nock'
88
const __dirname = fileURLToPath(new URL('.', import.meta.url))
99

1010
void describe('REST', () => {

src/REST.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import {
55
} from '@bifravst/bdd-markdown'
66
import { Type } from '@sinclair/typebox'
77
import jsonata from 'jsonata'
8+
import assert from 'node:assert/strict'
89
import { check, objectMatching } from 'tsmatchers'
910
import { doRequest } from './lib/doRequest.js'
10-
import assert from 'node:assert/strict'
1111

1212
let currentRequest: ReturnType<typeof doRequest> = {
1313
match: async () => Promise.reject(new Error(`No request pending!`)),

src/httpApiMock.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import {
44
regExpMatchedStep,
55
type StepRunner,
66
} from '@bifravst/bdd-markdown'
7-
import { Type } from '@sinclair/typebox'
8-
import { parseMockResponse } from '@bifravst/http-api-mock/parseMockResponse'
9-
import { registerResponse } from '@bifravst/http-api-mock/responses'
107
import { parseMockRequest } from '@bifravst/http-api-mock/parseMockRequest'
8+
import { parseMockResponse } from '@bifravst/http-api-mock/parseMockResponse'
119
import { listRequests } from '@bifravst/http-api-mock/requests'
12-
import { check, objectMatching } from 'tsmatchers'
10+
import { registerResponse } from '@bifravst/http-api-mock/responses'
11+
import { Type } from '@sinclair/typebox'
1312
import pRetry from 'p-retry'
13+
import { check, objectMatching } from 'tsmatchers'
1414

1515
export const steps = ({
1616
db,

src/lib/doRequest.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import assert from 'node:assert/strict'
12
import { describe, it, mock } from 'node:test'
3+
import { arrayContaining, check, objectMatching } from 'tsmatchers'
24
import { doRequest } from './doRequest.js'
3-
import { check, objectMatching, arrayContaining } from 'tsmatchers'
4-
import assert from 'node:assert/strict'
55

66
void describe('doRequest()', () => {
77
void it('should execute a request', async () => {

src/mocknRFCloud.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ import {
44
QueryCommand,
55
ScanCommand,
66
} from '@aws-sdk/client-dynamodb'
7+
import type { SSMClient } from '@aws-sdk/client-ssm'
78
import { marshall, unmarshall } from '@aws-sdk/util-dynamodb'
89
import {
910
codeBlockOrThrow,
1011
regExpMatchedStep,
1112
type StepRunner,
1213
} from '@bifravst/bdd-markdown'
13-
import { Type } from '@sinclair/typebox'
14-
import type { SSMClient } from '@aws-sdk/client-ssm'
15-
import { check, objectMatching, stringContaining } from 'tsmatchers'
16-
import pRetry from 'p-retry'
14+
import { parseMockRequest } from '@bifravst/http-api-mock/parseMockRequest'
15+
import { parseMockResponse } from '@bifravst/http-api-mock/parseMockResponse'
16+
import { registerResponse } from '@bifravst/http-api-mock/responses'
1717
import {
1818
sortQuery,
1919
sortQueryString,
2020
} from '@bifravst/http-api-mock/sortQueryString'
21-
import { parseMockRequest } from '@bifravst/http-api-mock/parseMockRequest'
22-
import { parseMockResponse } from '@bifravst/http-api-mock/parseMockResponse'
2321
import { getAllAccountsSettings } from '@hello.nrfcloud.com/nrfcloud-api-helpers/settings'
24-
import { registerResponse } from '@bifravst/http-api-mock/responses'
22+
import { Type } from '@sinclair/typebox'
23+
import pRetry from 'p-retry'
24+
import { check, objectMatching, stringContaining } from 'tsmatchers'
2525

2626
export const steps = ({
2727
db,

src/random.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { describe, it } from 'node:test'
2-
import assert from 'node:assert/strict'
31
import { runFolder } from '@bifravst/bdd-markdown'
2+
import assert from 'node:assert/strict'
43
import path from 'node:path'
4+
import { describe, it } from 'node:test'
55
import { fileURLToPath } from 'node:url'
6-
import { steps, UUIDv4, email, IMEI } from './random.js'
6+
import { email, IMEI, steps, UUIDv4 } from './random.js'
77
const __dirname = fileURLToPath(new URL('.', import.meta.url))
88

99
void describe('Random', () => {

src/storage.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { describe, it } from 'node:test'
2-
import assert from 'node:assert/strict'
31
import { runFolder } from '@bifravst/bdd-markdown'
2+
import assert from 'node:assert/strict'
43
import path from 'node:path'
4+
import { describe, it } from 'node:test'
55
import { fileURLToPath } from 'node:url'
66
import { steps } from './storage.js'
77
const __dirname = fileURLToPath(new URL('.', import.meta.url))

src/storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { regExpMatchedStep, type StepRunner } from '@bifravst/bdd-markdown'
22
import { Type } from '@sinclair/typebox'
3-
import assert from 'node:assert/strict'
43
import jsonata from 'jsonata'
4+
import assert from 'node:assert/strict'
55

66
export const store = regExpMatchedStep(
77
{

0 commit comments

Comments
 (0)