Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
👕
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilde Ann Thurium committed Aug 24, 2018
1 parent f368e60 commit 755bacb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/controllers/file-patch-controller.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ describe('FilePatchController', function() {
});
describe('buildURI', function() {
it('correctly uri encodes all components', function() {
const filePath = '???.txt';
const filePathWithSpecialChars = '???.txt';
const stagingStatus = 'staged';
const URI = FilePatchController.buildURI(filePath, workdirPath, stagingStatus);
assert.isTrue(URI.includes(encodeURIComponent(filePath)));
const URI = FilePatchController.buildURI(filePathWithSpecialChars, workdirPath, stagingStatus);
assert.isTrue(URI.includes(encodeURIComponent(filePathWithSpecialChars)));
assert.isTrue(URI.includes(encodeURIComponent(workdirPath)));
assert.isTrue(URI.includes(encodeURIComponent(stagingStatus)));
});
Expand Down

0 comments on commit 755bacb

Please sign in to comment.