Skip to content

Commit

Permalink
add basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkage committed Oct 19, 2019
1 parent c9a8fd3 commit 75a7492
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#! /usr/bin/env node

const scraper = require('./scrape.js')

const fs = require('fs')
const readJSON = fn => JSON.parse(fs.readFileSync(fn))

const config = readJSON('./instance/config.json')
const secret = readJSON('./instance/secret.json')

scraper({
debug: true,
orgID: config.orgID,
groupID: config.groupID,
auth: secret
}).then(members => console.log(members))

0 comments on commit 75a7492

Please sign in to comment.