mirror of
https://github.com/leon-ai/leon.git
synced 2024-09-19 22:07:10 +03:00
17 lines
452 B
JavaScript
17 lines
452 B
JavaScript
describe('trend:producthunt', () => {
|
|
test('requests Product Hunt', async () => {
|
|
global.nlu.brain.execute = jest.fn()
|
|
await global.nlu.process('What\'s trending on Product Hunt?')
|
|
|
|
const [obj] = global.nlu.brain.execute.mock.calls
|
|
await global.brain.execute(obj[0])
|
|
|
|
expect([
|
|
'reaching',
|
|
'today',
|
|
'unreachable',
|
|
'invalid_developer_token'
|
|
]).toIncludeAnyMembers(global.brain.finalOutput.codes)
|
|
})
|
|
})
|