MCPcopy Create free account
hub / github.com/ampproject/amphtml / observer1

Function observer1

test/unit/core/data-structures/test-observable.js:12–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 it('add-remove-fire', () => {
11 let observer1Called = 0;
12 const observer1 = () => {
13 observer1Called++;
14 };
15 observable.add(observer1);
16
17 let observer2Called = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected