Skip to content

Commit 22d6688

Browse files
authored
Merge pull request #27 from bootstrap-styled/dev
test(button): repair test
2 parents 2627b99 + aade0be commit 22d6688

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tests/buttons.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ describe('bootstrap button mixins', () => {
88
const css = buttonVariant(defaultProps['$enable-shadows'], '#f00', '#0f0', '#0ff', defaultProps['$btn-active-box-shadow'], defaultProps['$btn-box-shadow']);
99
expect(css).not.toContain('undefined');
1010
expect(css).not.toContain('null');
11-
expect(fromJS({ css }).hashCode()).toEqual(271168360);
11+
expect(fromJS({ css }).hashCode()).toEqual(657616858);
1212
});
1313
it('buttonVariant should return a css with shadows', () => {
1414
const css = buttonVariant(!defaultProps['$enable-shadows'], '#f00', '#0f0', '#0ff', defaultProps['$btn-active-box-shadow'], defaultProps['$btn-box-shadow']);
1515
expect(css).not.toContain('undefined');
1616
expect(css).not.toContain('null');
17-
expect(fromJS({ css }).hashCode()).toEqual(224299788);
17+
expect(fromJS({ css }).hashCode()).toEqual(-276107851);
1818
});
1919
it('buttonVariant should return a css with gradient colors', () => {
2020
const css = buttonVariant(!defaultProps['$enable-shadows'], '#f00', 'linear-gradient(#B21255, #790A68)', '#0ff', defaultProps['$btn-active-box-shadow'], false);
2121
expect(css).not.toContain('undefined');
2222
expect(css).not.toContain('null');
23-
expect(fromJS({ css }).hashCode()).toEqual(-568735117);
23+
expect(fromJS({ css }).hashCode()).toEqual(989192686);
2424
});
2525
it('buttonVariant should return a css by default', () => {
2626
const css = buttonVariant();
27-
expect(fromJS({ css }).hashCode()).toEqual(-915181683);
27+
expect(fromJS({ css }).hashCode()).toEqual(461863357);
2828
});
2929
it('buttonOutlineVariant should return a css', () => {
3030
const css = buttonOutlineVariant('#f00', '#0f0');
@@ -103,12 +103,12 @@ describe('bootstrap button mixins', () => {
103103
);
104104
expect(css).not.toContain('undefined');
105105
expect(css).not.toContain('null');
106-
expect(fromJS({ css }).hashCode()).toEqual(-810291941);
106+
expect(fromJS({ css }).hashCode()).toEqual(82881827);
107107
});
108108
it('button should return a button utility by default', () => {
109109
const css = button();
110110
expect(css).not.toContain('undefined');
111111
expect(css).not.toContain('null');
112-
expect(fromJS({ css }).hashCode()).toEqual(804299585);
112+
expect(fromJS({ css }).hashCode()).toEqual(548086007);
113113
});
114114
});

0 commit comments

Comments
 (0)