aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-07-25 11:53:58 +0300
committerHenry Jameson <me@hjkos.com>2024-07-25 11:53:58 +0300
commite8d7d341f03846a3faf85670866b2cb8d9d12cc9 (patch)
treebdb2d0d8cd673ef6ee13df47f0cd3f986da0b248 /test
parent0ca9a2c8c0d04b3468c93de4a53fac8197581d8b (diff)
parent4797b13625f5848e3f7d437ec9dcf6073607a647 (diff)
Merge remote-tracking branch 'origin/develop' into fix-develop-issues
Diffstat (limited to 'test')
-rw-r--r--test/unit/specs/services/theme_data/theme_data3.spec.js44
1 files changed, 25 insertions, 19 deletions
diff --git a/test/unit/specs/services/theme_data/theme_data3.spec.js b/test/unit/specs/services/theme_data/theme_data3.spec.js
index bb8d785c..b76ea596 100644
--- a/test/unit/specs/services/theme_data/theme_data3.spec.js
+++ b/test/unit/specs/services/theme_data/theme_data3.spec.js
@@ -66,7 +66,7 @@ describe('Theme Data 3', () => {
this.timeout(5000)
it('Test initialization without anything', () => {
- const out = init([], '#DEADAF')
+ const out = init({ inputRuleset: [], ultimateBackgroundColor: '#DEADAF' })
expect(out).to.have.property('eager')
expect(out).to.have.property('lazy')
@@ -85,13 +85,16 @@ describe('Theme Data 3', () => {
})
it('Test initialization with a basic palette', () => {
- const out = init([{
- component: 'Root',
- directives: {
- '--bg': 'color | #008080',
- '--fg': 'color | #00C0A0'
- }
- }], '#DEADAF')
+ const out = init({
+ inputRuleset: [{
+ component: 'Root',
+ directives: {
+ '--bg': 'color | #008080',
+ '--fg': 'color | #00C0A0'
+ }
+ }],
+ ultimateBackgroundColor: '#DEADAF'
+ })
expect(out.staticVars).to.have.property('bg').equal('#008080')
expect(out.staticVars).to.have.property('fg').equal('#00C0A0')
@@ -105,17 +108,20 @@ describe('Theme Data 3', () => {
})
it('Test initialization with opacity', () => {
- const out = init([{
- component: 'Root',
- directives: {
- '--bg': 'color | #008080'
- }
- }, {
- component: 'Panel',
- directives: {
- opacity: 0.5
- }
- }], '#DEADAF')
+ const out = init({
+ inputRuleset: [{
+ component: 'Root',
+ directives: {
+ '--bg': 'color | #008080'
+ }
+ }, {
+ component: 'Panel',
+ directives: {
+ opacity: 0.5
+ }
+ }],
+ ultimateBackgroundColor: '#DEADAF'
+ })
expect(out.staticVars).to.have.property('bg').equal('#008080')