UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

26 lines (19 loc) 765 B
const StitchMongoFixture = require('../fixtures/stitch_mongo_fixture'); import { buildAdminTestHarness, extractTestFixtureDataPoints } from '../testutil'; describe('Deploy', () => { let test = new StitchMongoFixture(); let th; let appDeploy; beforeAll(() => test.setup()); afterAll(() => test.teardown()); beforeEach(async() => { const { apiKey, groupId, serverUrl } = extractTestFixtureDataPoints(test); th = await buildAdminTestHarness(true, apiKey, groupId, serverUrl); appDeploy = th.app().deploy(); }); afterEach(async() => th.cleanup()); it('returns an empty list when requesting deploy history', async() => { const deployHistory = await appDeploy.deployments().list(); expect(deployHistory).toEqual([]); }); });