Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions tests/fixtures/js-stubs/asana.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function AsanaPlugin() {
export function AsanaPlugin() {
return {
status: 'unknown',
description: 'Integrate Asana issues by linking a repository to a project.',
Expand Down Expand Up @@ -26,7 +26,7 @@ function AsanaPlugin() {
};
}

function AsanaCreate() {
export function AsanaCreate() {
return [
{
name: 'workspace',
Expand Down Expand Up @@ -70,8 +70,7 @@ function AsanaCreate() {
}

const DEFAULT_AUTOCOMPLETE = {text: '(#724210387969378) billy', id: 724210387969378};
function AsanaAutocomplete(type = 'project', values = [DEFAULT_AUTOCOMPLETE]) {

export function AsanaAutocomplete(type = 'project', values = [DEFAULT_AUTOCOMPLETE]) {
return {[type]: values};
}

export {AsanaAutocomplete, AsanaCreate, AsanaPlugin};
3 changes: 1 addition & 2 deletions tests/fixtures/js-stubs/broadcast.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ export function Broadcast(params = {}) {
hasSeen: false,
id: '8',
isActive: true,
link:
'https://docs.sentry.io/clients/javascript/sourcemaps/#uploading-source-maps-to-sentry',
link: 'https://docs.sentry.io/clients/javascript/sourcemaps/#uploading-source-maps-to-sentry',
message:
'Source maps are JSON files that contain information on how to map your transpiled source code back to their original source.',
title: 'Learn about Source Maps',
Expand Down
14 changes: 14 additions & 0 deletions tests/fixtures/js-stubs/dataScrubbingRelayPiiConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export function DataScrubbingRelayPiiConfig() {
return {
rules: {
0: {type: 'password', redaction: {method: 'replace', text: 'Scrubbed'}},
1: {type: 'creditcard', redaction: {method: 'mask'}},
2: {
type: 'pattern',
pattern: '[a-zA-Z0-9]+',
redaction: {method: 'replace', text: 'Placeholder'},
},
},
applications: {password: ['0'], $message: ['1', '2']},
};
}
16 changes: 0 additions & 16 deletions tests/fixtures/js-stubs/dataScrubbingRelayPiiConfig.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function ExceptionWithMeta(props = {}) {
export function ExceptionWithMeta(props = {}) {
return {
level: 'error',
platform: 'python',
Expand Down Expand Up @@ -31,5 +31,3 @@ function ExceptionWithMeta(props = {}) {
...props,
};
}

export {ExceptionWithMeta};
Empty file.
60 changes: 31 additions & 29 deletions tests/fixtures/js-stubs/organizationIntegrations.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
export const OrganizationIntegrations = organizationId => ({
id: '15',
name: 'hb-testing',
icon: 'https://a.slack-edge.com/80588/img/avatars-teams/ava_0012-132.png',
domainName: 'hb-testing.slack.com',
accountType: null,
status: 'active',
provider: {
key: 'slack',
slug: 'slack',
name: 'Slack',
canAdd: true,
canDisable: false,
features: ['alert-rule', 'chat-unfurl'],
aspects: {
alerts: [
{
type: 'info',
text: 'The Slack integration adds a new Alert Rule action to all projects. To enable automatic notifications sent to Slack you must create a rule using the slack workspace action in your project settings.',
},
],
export function OrganizationIntegrations(organizationId) {
return {
id: '15',
name: 'hb-testing',
icon: 'https://a.slack-edge.com/80588/img/avatars-teams/ava_0012-132.png',
domainName: 'hb-testing.slack.com',
accountType: null,
status: 'active',
provider: {
key: 'slack',
slug: 'slack',
name: 'Slack',
canAdd: true,
canDisable: false,
features: ['alert-rule', 'chat-unfurl'],
aspects: {
alerts: [
{
type: 'info',
text: 'The Slack integration adds a new Alert Rule action to all projects. To enable automatic notifications sent to Slack you must create a rule using the slack workspace action in your project settings.',
},
],
},
},
},
configOrganization: [],
configData: {
installationType: 'born_as_bot',
},
organizationId,
externalId: 'TA99AB9CD',
});
configOrganization: [],
configData: {
installationType: 'born_as_bot',
},
organizationId,
externalId: 'TA99AB9CD',
};
}
8 changes: 3 additions & 5 deletions tests/fixtures/js-stubs/phabricator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function PhabricatorPlugin() {
export function PhabricatorPlugin() {
return {
status: 'unknown',
description:
Expand Down Expand Up @@ -35,7 +35,7 @@ function PhabricatorPlugin() {
};
}

function PhabricatorCreate() {
export function PhabricatorCreate() {
return [
{
default: 'ApiException: Authentication failed, token expired!',
Expand Down Expand Up @@ -79,7 +79,7 @@ const DEFAULT_AUTOCOMPLETE_ASSIGNEE = {
const DEFAULT_AUTOCOMPLETE_TAG1 = {text: 'Bar', id: 'PHID-PROJ-biz3qujawd2dfknvhpqv'};
const DEFAULT_AUTOCOMPLETE_TAG2 = {text: 'Foo', id: 'PHID-PROJ-3dfrsmwmavdv4gbg4fxd'};

function PhabricatorAutocomplete(type = 'project', values = null) {
export function PhabricatorAutocomplete(type = 'project', values = null) {
if (values) {
return {[type]: values};
}
Expand All @@ -91,5 +91,3 @@ function PhabricatorAutocomplete(type = 'project', values = null) {
}
return {[type]: values};
}

export {PhabricatorAutocomplete, PhabricatorCreate, PhabricatorPlugin};
3 changes: 1 addition & 2 deletions tests/fixtures/js-stubs/projectKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export function ProjectKeys(params = []) {
minidump:
'http://dev.getsentry.net:8000/api/1/minidump?sentry_key=188ee45a58094d939428d8585aa6f661',
public: 'http://188ee45a58094d939428d8585aa6f661@dev.getsentry.net:8000/1',
csp:
'http://dev.getsentry.net:8000/api/1/csp-report/?sentry_key=188ee45a58094d939428d8585aa6f661',
csp: 'http://dev.getsentry.net:8000/api/1/csp-report/?sentry_key=188ee45a58094d939428d8585aa6f661',
security:
'http://dev.getsentry.net:8000/api/1/security-report/?sentry_key=188ee45a58094d939428d8585aa6f661',
},
Expand Down
6 changes: 2 additions & 4 deletions tests/fixtures/js-stubs/vsts-old.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function VstsPlugin() {
export function VstsPlugin() {
return {
status: 'unknown',
description: 'Integrate Visual Studio Team Services work items by linking a project.',
Expand Down Expand Up @@ -26,7 +26,7 @@ function VstsPlugin() {
};
}

function VstsCreate() {
export function VstsCreate() {
return [
{
name: 'project',
Expand All @@ -51,5 +51,3 @@ function VstsCreate() {
},
];
}

export {VstsCreate, VstsPlugin};