|
@@ -7,7 +7,7 @@ jest.useFakeTimers();
|
|
|
describe('EventWaiter', function () {
|
|
|
it('waits for the first projet event', async function () {
|
|
|
const org = TestStubs.Organization();
|
|
|
- const project = TestStubs.ProjectDetails({
|
|
|
+ const project = TestStubs.Project({
|
|
|
firstEvent: null,
|
|
|
});
|
|
|
|
|
@@ -73,7 +73,7 @@ describe('EventWaiter', function () {
|
|
|
|
|
|
it('receives a first event of `true` when first even has expired', async function () {
|
|
|
const org = TestStubs.Organization();
|
|
|
- const project = TestStubs.ProjectDetails({
|
|
|
+ const project = TestStubs.Project({
|
|
|
firstEvent: '2019-05-01T00:00:00.000Z',
|
|
|
});
|
|
|
|
|
@@ -114,7 +114,7 @@ describe('EventWaiter', function () {
|
|
|
|
|
|
it('does not poll when disabled', function () {
|
|
|
const org = TestStubs.Organization();
|
|
|
- const project = TestStubs.ProjectDetails();
|
|
|
+ const project = TestStubs.Project();
|
|
|
|
|
|
const projectApiMock = MockApiClient.addMockResponse({
|
|
|
url: `/projects/${org.slug}/${project.slug}/`,
|