-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add coverage for theme build option
- Loading branch information
ignace
committed
Dec 10, 2023
1 parent
e4de39c
commit 028bee6
Showing
2 changed files
with
18 additions
and
0 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,17 @@ | ||
import { module, test } from 'qunit'; | ||
import { assert as debugAssert } from '@ember/debug'; | ||
|
||
module('theme', function () { | ||
function style(element) { | ||
return window.getComputedStyle(element); | ||
} | ||
|
||
test('the qunit-default themes are present when used', async function (assert) { | ||
let qunitHeader = document.getElementById('qunit-header'); | ||
|
||
debugAssert(`#qunit-header must exist`, qunitHeader); | ||
|
||
// Defaults | ||
assert.strictEqual(style(qunitHeader).backgroundColor, 'rgb(13, 51, 73)'); | ||
}); | ||
}); |