Skip to content

Commit

Permalink
refactor: keep qunit-default as the default
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceMaes committed May 9, 2024
1 parent 028bee6 commit 6f5255c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions addon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ module.exports = function (defaults) {
*/
disableContainerStyles: true,
/**
* default: 'ember'
* options: 'ember' | 'qunit-default'
* default: 'qunit-default'
* options: 'qunit-default' | 'ember'
*
* Sets the theme for the Web UI of the test runner. Use a different value to disable loading any theme, allowing you to provide your own external one.
*/
theme: 'ember',
theme: 'qunit-default',
},
},
},
Expand Down
6 changes: 1 addition & 5 deletions addon/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ if (macroCondition(!getOwnConfig()?.disableContainerStyles)) {
importSync('./test-container-styles.css');
}

if (
macroCondition(
getOwnConfig()?.theme === undefined || getOwnConfig()?.theme === 'ember'
)
) {
if (macroCondition(getOwnConfig()?.theme === 'ember')) {
importSync('qunit-theme-ember/qunit.css');
}

Expand Down

0 comments on commit 6f5255c

Please sign in to comment.