Skip to content

Commit

Permalink
Update imports and remove log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
P-Gill97 committed Jun 11, 2024
1 parent 1e52be8 commit b3df6e8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/lib/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class EventManager {
this.impressionId = this.impressionId ?? uuidv4()
const context = getCurrentContext()
const eventsEndpointMapper = ENV.OS_RAISE_EVENTSAPI_URL_MAP as Record<string, string | undefined>
console.log('host', context.location.host)
const eventsEndpoint = eventsEndpointMapper[context.location.host]

if (context.courseId === undefined || eventsEndpoint === undefined || window.M === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/EventControlledContent.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render, screen, fireEvent } from '@testing-library/react'

import { EventControlledContent } from '../components/EventControlledContent'
import { vi, test, expect } from 'vitest'
import { test, expect } from 'vitest'

test('EventControlledContent does not render children if waitForEvent does not fire', async () => {
render(
Expand Down
2 changes: 1 addition & 1 deletion src/tests/MoodleApi.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MoodleApi } from '../moodleapi'
import { setupServer } from 'msw/node'
import { http, HttpResponse } from 'msw'
import { vi, test, expect, beforeAll, afterEach, afterAll} from 'vitest'
import { test, expect, beforeAll, afterEach, afterAll} from 'vitest'

const server = setupServer(
http.post('http://moodle/lib/ajax/service.php', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/kas.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { parse, compare } from '@khanacademy/kas'
import { vi, test, expect } from 'vitest'
import { test, expect } from 'vitest'

test('Test kas', async () => {
const options = {
Expand Down

0 comments on commit b3df6e8

Please sign in to comment.