Skip to content

Commit

Permalink
fix latest hosting wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxolotl committed Oct 7, 2019
1 parent 903e87c commit 9dafbe6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "a-walk-in-javascript",
"version": "1.8.0",
"version": "1.8.1",
"description": "A day by day walk through the basics of javascript assisted with notes, exercises and references to the most significant resources online",
"main": "''",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/day_06/hoisting.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ describe('DAY 6: Test Hoisting', () => {
};
});

it(`myHoistedFunctionDeclaration should be hoisted as undefined,
it(`myHoistedFunctionDeclaration should be hoisted together with its body,
NOT to throw a reference error`, () => {

// change the expect clause to complete the test
// @see https://jestjs.io/docs/en/expect documentation for help
expect(myHoistedFunctionDeclaration).toBeUndefined();
expect(myHoistedFunctionDeclaration).toThrow();

/**
* @returns {undefined}
Expand Down

0 comments on commit 9dafbe6

Please sign in to comment.