Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxakuru committed Jun 29, 2021
1 parent 4bde588 commit 74e345c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/git-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class GitUtils {
*/
async function getRootGitDir(gitpath) {
if (!await fse.pathExists(gitpath)) {
throw Error('Directory does not exist');
throw Error('Expected a local git repository.');
}

const stat = await fse.lstat(gitpath);
Expand Down
2 changes: 1 addition & 1 deletion test/testUpCmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('Integration test for up command', function suite() {
.run();
assert.fail('hlx up without .git should fail.');
} catch (e) {
assert.equal(e.message, 'hlx up needs local git repository.');
assert.strictEqual(e.message, 'Expected a local git repository.');
}
});

Expand Down

0 comments on commit 74e345c

Please sign in to comment.