MCPcopy Index your code
hub / github.com/ampproject/amphtml / exposeKarmaConfig

Function exposeKarmaConfig

testing/init-tests-helpers.js:64–71  ·  view source on GitHub ↗

* Exposes Karma's config constant for use during tests. The regular test runner * uses `karma`, while the debugger uses `__karma__ `.

()

Source from the content-addressed store, hash-verified

62 * uses `karma`, while the debugger uses `__karma__ `.
63 */
64function exposeKarmaConfig() {
65 if (parent.karma && !parent.__karma__) {
66 parent.__karma__ = parent.karma;
67 }
68 window.ampTestRuntimeConfig = parent.__karma__
69 ? parent.__karma__.config.amp
70 : {};
71}
72
73/**
74 * Initializes the constructs with which all test cases are authored.

Callers 1

initializeTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected