Skip to content

Commit 7408264

Browse files
committed
test: fix tests
1 parent 7beea47 commit 7408264

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

www/shared/react/grid/Col.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ it('should respect passed className', () => {
2323
it('should respect passed columns (number)', () => {
2424
const { container } = render(<Col columns={ 1 }>Hello World</Col>);
2525

26-
expect(container.querySelector('div').classList.contains('col-column-1')).toBe(true);
26+
expect(container.querySelector('div').classList.contains('col-column-xxs-1')).toBe(true);
2727
});
2828

2929
it('should respect passed columns (object)', () => {
@@ -41,7 +41,7 @@ it('should respect passed columns (object)', () => {
4141
it('should respect passed offset (number)', () => {
4242
const { container } = render(<Col offset={ 1 }>Hello World</Col>);
4343

44-
expect(container.querySelector('div').classList.contains('col-offset-1')).toBe(true);
44+
expect(container.querySelector('div').classList.contains('col-offset-xxs-1')).toBe(true);
4545
});
4646

4747
it('should respect passed offset (object)', () => {

www/shared/react/grid/Row.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ it('should respect passed className', () => {
2323
it('should respect passed justifyContent (string)', () => {
2424
const { container } = render(<Row justifyContent="flex-end">Hello World</Row>);
2525

26-
expect(container.querySelector('div').classList.contains('row-justify-content-flex-end')).toBe(true);
26+
expect(container.querySelector('div').classList.contains('row-justify-content-xxs-flex-end')).toBe(true);
2727
});
2828

2929
it('should respect passed justifyContent (object)', () => {
@@ -41,7 +41,7 @@ it('should respect passed justifyContent (object)', () => {
4141
it('should respect passed alignItems (string)', () => {
4242
const { container } = render(<Row alignItems="flex-end">Hello World</Row>);
4343

44-
expect(container.querySelector('div').classList.contains('row-align-items-flex-end')).toBe(true);
44+
expect(container.querySelector('div').classList.contains('row-align-items-xxs-flex-end')).toBe(true);
4545
});
4646

4747
it('should respect passed alignItems (object)', () => {

0 commit comments

Comments
 (0)