/home/desid573/public_html/smee-client-master/test
Edit: /home/desid573/public_html/smee-client-master/test/index.test.js (455B)
const Client = require('..')
const nock = require('nock')
describe('client', () => {
describe('createChannel', () => {
test('returns a new channel', async () => {
const req = nock('https://smee.io').head('/new').reply(302, '', {
Location: 'https://smee.io/abc123'
})
const channel = await Client.createChannel()
expect(channel).toEqual('https://smee.io/abc123')
expect(req.isDone()).toBe(true)
})
})
})