|
@@ -1,4 +1,5 @@
|
|
import {Organization} from 'sentry-fixture/organization';
|
|
import {Organization} from 'sentry-fixture/organization';
|
|
|
|
+import {Project as ProjectFixture} from 'sentry-fixture/project';
|
|
import {Team} from 'sentry-fixture/team';
|
|
import {Team} from 'sentry-fixture/team';
|
|
|
|
|
|
import {updateOnboardingTask} from 'sentry/actionCreators/onboardingTasks';
|
|
import {updateOnboardingTask} from 'sentry/actionCreators/onboardingTasks';
|
|
@@ -16,7 +17,7 @@ describe('actionCreators/onboardingTasks', function () {
|
|
it('Adds the task to the organization when task does not exists', async function () {
|
|
it('Adds the task to the organization when task does not exists', async function () {
|
|
const detailedOrg = Organization({
|
|
const detailedOrg = Organization({
|
|
teams: [Team()],
|
|
teams: [Team()],
|
|
- projects: [TestStubs.Project()],
|
|
|
|
|
|
+ projects: [ProjectFixture()],
|
|
});
|
|
});
|
|
|
|
|
|
// User is not passed into the update request
|
|
// User is not passed into the update request
|
|
@@ -44,7 +45,7 @@ describe('actionCreators/onboardingTasks', function () {
|
|
it('Updates existing onboarding task', async function () {
|
|
it('Updates existing onboarding task', async function () {
|
|
const detailedOrg = Organization({
|
|
const detailedOrg = Organization({
|
|
teams: [Team()],
|
|
teams: [Team()],
|
|
- projects: [TestStubs.Project()],
|
|
|
|
|
|
+ projects: [ProjectFixture()],
|
|
onboardingTasks: [{task: OnboardingTaskKey.FIRST_EVENT, status: 'skipped'}],
|
|
onboardingTasks: [{task: OnboardingTaskKey.FIRST_EVENT, status: 'skipped'}],
|
|
});
|
|
});
|
|
|
|
|
|
@@ -75,7 +76,7 @@ describe('actionCreators/onboardingTasks', function () {
|
|
it('Does not make API request without api object', async function () {
|
|
it('Does not make API request without api object', async function () {
|
|
const detailedOrg = Organization({
|
|
const detailedOrg = Organization({
|
|
teams: [Team()],
|
|
teams: [Team()],
|
|
- projects: [TestStubs.Project()],
|
|
|
|
|
|
+ projects: [ProjectFixture()],
|
|
});
|
|
});
|
|
|
|
|
|
const testTask = {
|
|
const testTask = {
|