Skip to content

Commit

Permalink
feature(restafary) add support of NBSP
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Apr 22, 2022
1 parent a61dcd0 commit 66e8b0e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
matrix:
node-version:
- 16.x
- 17.x
- 18.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"mime-types": "^2.1.28",
"patchfile": "^3.0.0",
"pipe-io": "^4.0.1",
"ponse": "^6.0.0",
"ponse": "^7.0.0",
"pullout": "^4.0.0",
"redzip": "^2.1.0",
"try-to-catch": "^3.0.0",
Expand Down
11 changes: 11 additions & 0 deletions test/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,3 +425,14 @@ test('restafary: zip: hash: content length', async (t) => {
t.end();
});

test('restafary: get: nbsp', async (t) => {
const {body} = await request.get('/fs/hello world', {
options: {
root: __dirname,
},
});

t.match(body, '\xa0');
t.end();
});

0 comments on commit 66e8b0e

Please sign in to comment.