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

Commit

Permalink
Upgrade to Jasmine 3 (#1103)
Browse files Browse the repository at this point in the history
* Install the custom Atom test runner powered by Jasmine 3

* Upgrade the Jasmine API to the latest

* Fix linter errors

* Update spec/custom-runner.js

Co-authored-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>

Co-authored-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
  • Loading branch information
illright and aminya committed Jan 12, 2021
1 parent 3bdb3f2 commit ed12ea7
Show file tree
Hide file tree
Showing 9 changed files with 294 additions and 98 deletions.
218 changes: 202 additions & 16 deletions package-lock.json

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

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"atom-slick": "^2.0.0",
"dompurify": "^2.0.7",
"dompurify": "^2.2.6",
"fuzzaldrin": "^2.1.0",
"fuzzaldrin-plus": "^0.6.0",
"grim": "^2.0.1",
Expand All @@ -21,6 +21,7 @@
"underscore-plus": "^1.6.6"
},
"devDependencies": {
"atom-jasmine3-test-runner": "^5.1.8",
"coffeelint": "^1.9.7",
"fs-plus": ">=2.4.0",
"standard": "^8.3.0",
Expand Down Expand Up @@ -254,5 +255,6 @@
"ignore": [
"**/spec/fixtures/**"
]
}
},
"atomTestRunner": "./spec/custom-runner"
}
2 changes: 1 addition & 1 deletion spec/autocomplete-manager-autosave-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ return sort(Array.apply(this, arguments));
})
}

spyOn(autocompleteManager, 'displaySuggestions').andCallFake((suggestions, options) => {
spyOn(autocompleteManager, 'displaySuggestions').and.callFake((suggestions, options) => {
displaySuggestions(suggestions, options)
for (const resolve of suggestionsPromises) {
resolve()
Expand Down
Loading

0 comments on commit ed12ea7

Please sign in to comment.