Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Apr 27, 2020
1 parent 6ffe0b4 commit f023149
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions source/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ if (config.allowedIPs) {
res
.status(403)
.send(
403,
'<h3>This host is not authorized to connect</h3>' +
'<p>You are trying to connect to an Ungit instance from an unathorized host.</p>'
);
Expand Down Expand Up @@ -386,7 +385,7 @@ app.post('/api/userconfig', ensureAuthenticated, (req, res) => {
});

app.get('/api/fs/exists', ensureAuthenticated, (req, res) => {
res.json(fs.existsSync(req.query['path']));
res.json(fs.existsSync(req.query.path));
});

app.get('/api/fs/listDirectories', ensureAuthenticated, (req, res) => {
Expand Down
4 changes: 2 additions & 2 deletions test/spec.git-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ describe('git-api', () => {
return common.post(req, '/discardchanges', { path: testDir, file: testFile });
});

it('modifying a test file should work', () => {
it('modifying a test file should work part deux', () => {
return common.post(req, '/testing/changefile', { file: path.join(testDir, testFile) });
});

Expand Down Expand Up @@ -281,7 +281,7 @@ describe('git-api', () => {
return common.post(req, '/testing/createfile', { file: path.join(testDir, testFile3) });
});

it('status should list the new file', () => {
it('status should list the new file once again', () => {
return common.get(req, '/status', { path: testDir }).then((res) => {
expect(Object.keys(res.files).length).to.be(1);
expect(res.files[testFile3]).to.eql({
Expand Down

0 comments on commit f023149

Please sign in to comment.