Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Jul 5, 2024
1 parent 33206d7 commit b09b15f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/runtime/tests/global-extends.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { beforeAll, expect, it } from 'vitest'

beforeAll(async () => {
window.masterCSSConfigs = [{
globalThis.masterCSSConfigs = [{
variables: {
primary: '#000000'
}
}]
window.masterCSSConfig = {
globalThis.masterCSSConfig = {
extends: [{
variables: {
secondary: '#ffffff'
Expand All @@ -17,8 +17,8 @@ beforeAll(async () => {
})

it('should include masterCSSConfigs', () => {
expect(window.masterCSSConfigs).toBeDefined()
expect(window.runtimeCSS.variables.primary).toBeDefined()
expect(window.runtimeCSS.variables.secondary).toBeDefined()
expect(window.runtimeCSS.customConfig.extends?.length).toBe(2)
expect(globalThis.masterCSSConfigs).toBeDefined()
expect(globalThis.runtimeCSS.variables.primary).toBeDefined()
expect(globalThis.runtimeCSS.variables.secondary).toBeDefined()
expect(globalThis.runtimeCSS.customConfig.extends?.length).toBe(2)
})

0 comments on commit b09b15f

Please sign in to comment.