Browse Source

refactor: remove type for event

telemetry
danstarns 1 year ago
parent
commit
880fac9453
  1. 1
      packages/core/src/editor/view/EditorView.ts
  2. 1
      packages/core/test/specs/editor/telemetry.ts

1
packages/core/src/editor/view/EditorView.ts

@ -82,7 +82,6 @@ export default class EditorView extends View<EditorModel> {
const response = await fetch(`${url}${path}`, {
method: 'POST',
body: JSON.stringify({
type: 'EDITOR:LOAD',
domain: hostName,
version,
url,

1
packages/core/test/specs/editor/telemetry.ts

@ -86,7 +86,6 @@ describe('Editor telemetry', () => {
expect(fetchMock.mock.calls[0][0]).toContain('/api/gjs/telemetry/collect');
expect(fetchMock.mock.calls[0][1].method).toBe('POST');
expect(JSON.parse(fetchMock.mock.calls[0][1].body)).toMatchObject({
type: 'EDITOR:LOAD',
domain: expect.any(String),
version: expect.any(String),
url: expect.any(String),

Loading…
Cancel
Save