-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
so the match does not depend on the order
- Loading branch information
1 parent
0dd96c6
commit 5b41165
Showing
9 changed files
with
477 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
npx lint-staged | ||
npx lint-staged | ||
npm test | ||
npx tsc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { splitMockResponse } from './splitMockResponse.js' | ||
import { describe, it } from 'node:test' | ||
import assert from 'node:assert' | ||
void describe('split mock response', () => { | ||
void it('should parse headers and body', () => | ||
assert.deepEqual( | ||
splitMockResponse(`Content-Type: application/octet-stream | ||
(binary A-GNSS data) other types`), | ||
{ | ||
headers: { | ||
'Content-Type': 'application/octet-stream', | ||
}, | ||
body: '(binary A-GNSS data) other types', | ||
}, | ||
)) | ||
}) |
Oops, something went wrong.