Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asvae committed Feb 6, 2023
1 parent c8d0a30 commit 17979d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions packages/ui/src/services/colors-classes/config/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ export const ColorsClassesPresets: ColorsClassesConfig = [
property: ['color', 'fill'],
},
]

export const getColorsClassesDefaultConfig = () => ColorsClassesPresets
4 changes: 0 additions & 4 deletions packages/ui/src/services/colors-classes/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import { addOrUpdateStyleElement } from '../../../utils/dom'
import type { ColorVariables } from '../../color'
import type { ColorsClassesConfig, ColorsClassesConfigItem } from '../types'

import { ColorsClassesPresets } from '../config/default'

export const getColorsClassesDefaultConfig = () => ColorsClassesPresets

const getColorsClassesHelpers = (helpers: ColorsClassesConfig, colors: ColorVariables) => {
const colorsEntries = Object.entries(colors)

Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/services/global-config/global-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { getBreakpointDefaultConfig } from '../breakpoint'
import { getGlobalProperty } from '../vue-plugin/utils'
import { inject } from '../current-app'
import { mergeDeep } from '../../utils/merge-deep'
import { getColorsClassesDefaultConfig } from '../colors-classes'
import { getColorsClassesDefaultConfig } from '../colors-classes/config/default'

export const GLOBAL_CONFIG = Symbol('GLOBAL_CONFIG')

Expand Down Expand Up @@ -47,7 +47,7 @@ export function useGlobalConfigSafe () {
return inject<ProvidedGlobalConfig>(GLOBAL_CONFIG)
}

export function useGlobalConfig (): ProvidedGlobalConfig {
export const useGlobalConfig = (): ProvidedGlobalConfig => {
const injected = inject<ProvidedGlobalConfig>(GLOBAL_CONFIG)

if (!injected) {
Expand Down

0 comments on commit 17979d5

Please sign in to comment.