MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / eventCallback

Function eventCallback

packages/core/media-query-list/index.spec.ts:65–65  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

63
64 it('should throw when adding or removing event listeners', () => {
65 const eventCallback = (data) => {};
66 const error = new TypeError('Illegal invocation');
67
68 expect(() => MediaQueryList.prototype.addEventListener('change', eventCallback)).toThrow(error);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected