Skip to content

Commit 7da94ae

Browse files
committed
Make tests a bit more useful for others
1 parent 991c873 commit 7da94ae

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ To get the database ID, simply browse to it, click on the '...' and get a 'Copy
4545
4646
Assumes you have `@vercel/ncc` installed globally.
4747
After changes ensure you `npm run build`, commit and then submit a PR.
48+
49+
For the tests to run you need to have the environment variables set for GITHUB_TOKEN, NOTION_TOKEN and NOTION_DATABASE.

src/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const cp = require('child_process')
55
jest.setTimeout(180000)
66

77
test('complete input should succeed with default inputs', () => {
8-
process.env.INPUT_DATABASE = 'cecaf0beb15945158d155866ff9acce8'
8+
process.env.INPUT_DATABASE = process.env.NOTION_DATABASE // cecaf0beb15945158d155866ff9acce8
99
process.env.INPUT_NOTION_TOKEN = process.env.NOTION_TOKEN
1010
process.env.INPUT_GITHUB_TOKEN = process.env.GITHUB_TOKEN
1111
process.env.INPUT_REPOSITORY_TYPE = 'public'

0 commit comments

Comments
 (0)