MCPcopy
hub / github.com/ampproject/amphtml / skipMicroTask

Function skipMicroTask

test/unit/test-custom-element.js:157–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155 });
156
157 function skipMicroTask() {
158 return new Promise((resolve) => resolve(Promise.resolve()));
159 }
160
161 it('should initialize ampdoc and resources on attach only', () => {
162 const element = new ElementClass();

Callers 1

Calls 2

resolveMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected