|
1 | | -import Style from '../src/core/style'; |
| 1 | +import cssx from '../src/core/cssx'; |
2 | 2 |
|
3 | | -test('Style.create returns an object with string values', () => { |
4 | | - const styles = Style.create({ test: { color: 'aqua' } }); |
| 3 | +test('cssx.create returns an object with string values', () => { |
| 4 | + const styles = cssx.create({ test: { color: 'aqua' } }); |
5 | 5 | expect(typeof styles).toBe('object'); |
6 | 6 | expect(typeof styles.test).toBe('string'); |
7 | 7 | }); |
8 | 8 |
|
9 | | -test('Style.set returns a string', () => { |
10 | | - const style = Style.set({ color: 'aqua' }); |
| 9 | +test('cssx.set returns a string', () => { |
| 10 | + const style = cssx.set({ color: 'aqua' }); |
11 | 11 | expect(typeof style).toBe('string'); |
12 | 12 | }); |
13 | 13 |
|
14 | | -test('Style.global returns undefined', () => { |
15 | | - const result = Style.global({}); |
| 14 | +test('cssx.global returns undefined', () => { |
| 15 | + const result = cssx.global({}); |
16 | 16 | expect(result).toBeUndefined(); |
17 | 17 | }); |
18 | 18 |
|
19 | | -test('Style.root returns undefined', () => { |
20 | | - const result = Style.root({}); |
| 19 | +test('cssx.root returns undefined', () => { |
| 20 | + const result = cssx.root({}); |
21 | 21 | expect(result).toBeUndefined(); |
22 | 22 | }); |
0 commit comments