|
@@ -1,3 +1,5 @@
|
|
|
|
+import {Organization} from 'sentry-fixture/organization';
|
|
|
|
+
|
|
import {updateOnboardingTask} from 'sentry/actionCreators/onboardingTasks';
|
|
import {updateOnboardingTask} from 'sentry/actionCreators/onboardingTasks';
|
|
import ConfigStore from 'sentry/stores/configStore';
|
|
import ConfigStore from 'sentry/stores/configStore';
|
|
import OrganizationStore from 'sentry/stores/organizationStore';
|
|
import OrganizationStore from 'sentry/stores/organizationStore';
|
|
@@ -11,7 +13,7 @@ describe('actionCreators/onboardingTasks', function () {
|
|
|
|
|
|
describe('updateOnboardingTask', function () {
|
|
describe('updateOnboardingTask', 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 = TestStubs.Organization({
|
|
|
|
|
|
+ const detailedOrg = Organization({
|
|
teams: [TestStubs.Team()],
|
|
teams: [TestStubs.Team()],
|
|
projects: [TestStubs.Project()],
|
|
projects: [TestStubs.Project()],
|
|
});
|
|
});
|
|
@@ -39,10 +41,10 @@ describe('actionCreators/onboardingTasks', function () {
|
|
});
|
|
});
|
|
|
|
|
|
it('Updates existing onboarding task', async function () {
|
|
it('Updates existing onboarding task', async function () {
|
|
- const detailedOrg = TestStubs.Organization({
|
|
|
|
|
|
+ const detailedOrg = Organization({
|
|
teams: [TestStubs.Team()],
|
|
teams: [TestStubs.Team()],
|
|
projects: [TestStubs.Project()],
|
|
projects: [TestStubs.Project()],
|
|
- onboardingTasks: [{task: 'send_first_event', status: 'skipped'}],
|
|
|
|
|
|
+ onboardingTasks: [{task: OnboardingTaskKey.FIRST_EVENT, status: 'skipped'}],
|
|
});
|
|
});
|
|
|
|
|
|
const testTask = {
|
|
const testTask = {
|
|
@@ -70,7 +72,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 = TestStubs.Organization({
|
|
|
|
|
|
+ const detailedOrg = Organization({
|
|
teams: [TestStubs.Team()],
|
|
teams: [TestStubs.Team()],
|
|
projects: [TestStubs.Project()],
|
|
projects: [TestStubs.Project()],
|
|
});
|
|
});
|