Skip to content
On this page

@obewds/tw-bg-palette-pastel Tests

Testing Status

CURRENT STATUS

100% Coverage
100% Passing

Vitest Tests

js
// ./tests/TwBgPalettePastel.test.js

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



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

    expect(twBgPalettePastel).toBeTruthy()

})



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

    expect(twBgPalettePastel.pastel).toBeTruthy()

})



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

    expect(twBgPalettePastel.pastel.colors).toBeTruthy()

})



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

    expect(twBgPalettePastel.pastel.colors['default']).toBeTruthy()
    expect(twBgPalettePastel.pastel.colors['error']).toBeTruthy()
    expect(twBgPalettePastel.pastel.colors['primary']).toBeTruthy()
    expect(twBgPalettePastel.pastel.colors['secondary']).toBeTruthy()
    expect(twBgPalettePastel.pastel.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