Skip to content

Commit e1d7ab3

Browse files
committed
remove personal config
1 parent 715a1de commit e1d7ab3

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/test.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
var Gitment = Gitment || require('./gitment')
22

3-
const { client_id, client_secret } = window
3+
const config = window.config
44

5-
if (!client_id || !client_secret) {
6-
throw new Error('You need to write your own client ID and client secret to `window` to run this test.')
5+
if (!config) {
6+
throw new Error('You need your own config to run this test.')
77
}
88

9-
const gitment = new Gitment({
10-
id: 'test',
11-
owner: 'imsun',
12-
repo: 'test',
13-
oauth: {
14-
client_id,
15-
client_secret,
16-
},
17-
})
9+
const gitment = new Gitment(config)
1810

1911
gitment.render('container')
2012

0 commit comments

Comments
 (0)