/
home
/
desid573
/
public_html
/
smee-client-master
/
test
/
/home/desid573/public_html/smee-client-master/test
mkdir
upload
Name
Size
Mode
Actions
index.test.js
455
0644
edit
dl
rm
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) }) }) })
Save
cmd:
run