Skip to content

Commit

Permalink
make date in tests independent from local date
Browse files Browse the repository at this point in the history
  • Loading branch information
angelinatarapko committed Aug 20, 2017
1 parent b79a52f commit cddb67e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/.storybook/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ exports[`Storyshots PostInfo showing post 1`] = `
Created At:
<b>
01.01.1970 02:00
20.08.2014 15:30
</b>
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/containers/PostInfo/__tests__/index.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ storiesOf('PostInfo', module)
id: 'uuidv4',
url: 'http://bogus.com',
votes: 1,
createdAt: new Date(0)
createdAt: '2014-08-20 15:30:00'
}
}

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ran-boilerplate",
"version": "0.4.0",
"main": "server.js",
"main": "server/index.js",
"description": "React . Apollo (GraphQL) . Next.js Boilerplate",
"author": "Ilker Guller <[email protected]> (http://ilkerguller.com)",
"license": "MIT",
Expand Down Expand Up @@ -47,7 +47,6 @@
"lint:css": "stylelint '**/*.js'",
"lint:all": "yarn run lint && yarn run lint:css",
"format": "prettier-eslint --write \"{app, helper_scripts, __{tests, mocks, utils}__}/**/*.js\" app/.storybook/*.js *.js",
"format:css": "styled-components-stylefmt -r '**/*.js'",
"analyze": "ANALYZE_BUILD=true yarn run build",
"setup": "node ./helper_scripts/CL_commands/setup.js && yarn run setup:after",
"setup:after": "yarn run build",
Expand Down Expand Up @@ -147,7 +146,6 @@
"react-test-renderer": "15.6.1",
"release": "1.3.3",
"shelljs": "0.7.8",
"styled-components-stylefmt": "0.1.2",
"stylelint": "8.0.0",
"stylelint-config-standard": "17.0.0",
"stylelint-processor-styled-components": "0.2.2",
Expand Down

0 comments on commit cddb67e

Please sign in to comment.