Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Update jest snapshots with latest version of jest-snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Nov 2, 2016
1 parent de39774 commit 968d240
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"docs-start": "cd docs && npm start",
"predocs-deploy": "cd docs && npm run showcase-screenshots && npm run build",
"docs-deploy": "cd docs && ./scripts/deploy.sh",
"pretests": "npm run transpile && npm run lint",
"pretest": "npm run transpile && npm run lint",
"test": "npm run tests && npm run phenomic-theme-base && npm run phenomic-theme-base-linting && npm run test-phenomic-theme-base && npm run e2e:tests",
"posttest": "npm run test-docs",
"coverage": "cat ./coverage/lcov.info | coveralls",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
exports[`test should be able to render a loading state 1`] = `
<function Page(props) /* istanbul ignore next */{return (
props.isLoading ?
/* istanbul ignore next */_react2.default.createElement( /* istanbul ignore next */"div", /* istanbul ignore next */{ className: "isLoading" }) :
/* istanbul ignore next */_react2.default.createElement( /* istanbul ignore next */"div", /* istanbul ignore next */{ className: "Page" }));}
<Page
head={Object {}}
isLoading={true} />
`;

exports[`test should render PageError if page not found and PageError is available 1`] = `
<function PageError() /* istanbul ignore next */{return (/* istanbul ignore next */_react2.default.createElement( /* istanbul ignore next */"div", /* istanbul ignore next */{ className: "PageError" }));}
<PageError
error="Test" />
`;

exports[`test should render a Page if page is ok 1`] = `
<function Page(props) /* istanbul ignore next */{return (
props.isLoading ?
/* istanbul ignore next */_react2.default.createElement( /* istanbul ignore next */"div", /* istanbul ignore next */{ className: "isLoading" }) :
/* istanbul ignore next */_react2.default.createElement( /* istanbul ignore next */"div", /* istanbul ignore next */{ className: "Page" }));}
<Page
head={Object {}} />
`;

exports[`test should render a another page layout if defaultLayout is used 1`] = `
<function AnotherPage() /* istanbul ignore next */{return (/* istanbul ignore next */_react2.default.createElement( /* istanbul ignore next */"div", /* istanbul ignore next */{ className: "AnotherPage" }));}
<AnotherPage
head={Object {}} />
`;

Expand Down

0 comments on commit 968d240

Please sign in to comment.