-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converts fileds_spec and mioq_api_spec from Jasmine to Jest old_js_file_require_helper - sets function from file(s) to global so they can be accessed in Jest specs, requires files
- Loading branch information
1 parent
af51ff0
commit bcbe889
Showing
4 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
global.window = global; | ||
require('../../../assets/javascripts/miq_application.js'); |
6 changes: 4 additions & 2 deletions
6
spec/javascripts/fields_spec.js → app/javascript/spec/old_js/fields.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
spec/javascripts/miq_api_spec.js → app/javascript/spec/old_js/miq_api.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters