Skip to content

Commit

Permalink
DEV additional test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Jul 3, 2023
1 parent 6008fe7 commit a74a56d
Show file tree
Hide file tree
Showing 30 changed files with 1,141 additions and 1,026 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`MinHeight Component should allow override of minHeight: override 1`] = `"<div class="curiosity-minheight" style="min-height: 1001px;"><div class="curiosity-minheight__inner">lorem ipsum</div></div>"`;
exports[`MinHeight Component should allow override of minHeight: override 1`] = `
<minheight
props="{
"minHeight": 1001,
"children": [
{}
],
"isOnLoad": false
}"
>
<div
class="curiosity-minheight"
style="min-height: 1001px;"
>
<div
class="curiosity-minheight__inner"
>
lorem ipsum
</div>
</div>
</minheight>
`;

exports[`MinHeight Component should render a basic component: basic 1`] = `"<div class="curiosity-minheight" style="min-height: 0px;"><div class="curiosity-minheight__inner">lorem ipsum</div></div>"`;
exports[`MinHeight Component should render a basic component: basic 1`] = `
<minheight
props="{
"children": [
{}
],
"isOnLoad": false,
"minHeight": 0
}"
>
<div
class="curiosity-minheight"
style="min-height: 0px;"
>
<div
class="curiosity-minheight__inner"
>
lorem ipsum
</div>
</div>
</minheight>
`;
12 changes: 6 additions & 6 deletions src/components/minHeight/__tests__/minHeight.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import React from 'react';
import { MinHeight } from '../minHeight';

describe('MinHeight Component', () => {
it('should render a basic component', async () => {
it('should render a basic component', () => {
const props = {};

const component = await mountHookComponent(<MinHeight {...props}>lorem ipsum</MinHeight>);
expect(component.html()).toMatchSnapshot('basic');
const component = renderComponent(<MinHeight {...props}>lorem ipsum</MinHeight>);
expect(component).toMatchSnapshot('basic');
});

it('should allow override of minHeight', async () => {
it('should allow override of minHeight', () => {
const props = {
minHeight: 1001
};
const component = await mountHookComponent(<MinHeight {...props}>lorem ipsum</MinHeight>);
expect(component.html()).toMatchSnapshot('override');
const component = renderComponent(<MinHeight {...props}>lorem ipsum</MinHeight>);
expect(component).toMatchSnapshot('override');
});
});
Loading

0 comments on commit a74a56d

Please sign in to comment.