Skip to content

Commit

Permalink
feat(sandbox): example of pubnub as a provider in notification service
Browse files Browse the repository at this point in the history
MIGRATION CHANGE:
migration-20210716062747- notification migration
migration-20210501132806- notification migration

gh-208
  • Loading branch information
yeshamavani committed Aug 25, 2021
1 parent 3054ff4 commit 97c3c48
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import {Client} from '@loopback/testlab';
import {PubnubExampleApplication} from '../..';
import {setupApplication} from './test-helper';

describe('HomePage', () => {
let app: PubnubExampleApplication;
let client: Client;

before('setupApplication', async () => {
({app, client} = await setupApplication());
});

after(async () => {
await app.stop();
});

it('exposes a default home page', async () => {
await client
.get('/')
.expect(200)
.expect('Content-Type', /text\/html/);
});

it('exposes self-hosted explorer', async () => {
await client
.get('/explorer/')
.expect(200)
.expect('Content-Type', /text\/html/)
.expect(/<title>LoopBack API Explorer/);
});
});

0 comments on commit 97c3c48

Please sign in to comment.