Skip to content
On this page

@obewds/tw-border-palette-default Tests

Testing Status

CURRENT STATUS

100% Coverage
100% Passing

Vitest Tests

js
// ./tests/TwBorderPaletteDefault.test.js

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



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

    expect(twBorderPaletteDefault).toBeTruthy()

})



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

    expect(twBorderPaletteDefault.default).toBeTruthy()

})



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

    expect(twBorderPaletteDefault.default.colors).toBeTruthy()

})



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

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