Skip to content
On this page

@obewds/tw-text-palette-default Tests

Testing Status

CURRENT STATUS

100% Coverage
100% Passing

Vitest Tests

js
// ./tests/TwTextPaletteDefault.test.js

import { twTextPaletteDefault } from '../src/index'



test('twTextPaletteDefault component returns a truthy value', async () => {

    expect(twTextPaletteDefault).toBeTruthy()

})



test('twTextPaletteDefault.default component returns an object with a truthy default property', async () => {

    expect(twTextPaletteDefault.default).toBeTruthy()

})



test('twTextPaletteDefault.default.colors component returns an object with a truthy colors property', async () => {

    expect(twTextPaletteDefault.default.colors).toBeTruthy()

})



test('twTextPaletteDefault component returns an object with the standard five default color names', async () => {

    expect(twTextPaletteDefault.default.colors['default']).toBe('')
    expect(twTextPaletteDefault.default.colors['error']).toBeTruthy()
    expect(twTextPaletteDefault.default.colors['primary']).toBeTruthy()
    expect(twTextPaletteDefault.default.colors['secondary']).toBeTruthy()
    expect(twTextPaletteDefault.default.colors['success']).toBeTruthy()

})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39