Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const jQuery = require(“jquery”);
Object.defineProperty(window, “jQuery”, { value: jQuery });
Object.defineProperty(window, “$”, { value: jQuery });
const angular = require(“angular”);
Object.defineProperty(window, “angular”, { value: angular });
require(“angular-mocks”);
require(“./”);
@rgeraldporter

This comment has been minimized.

Copy link

rgeraldporter commented Jun 27, 2019

Thanks. FYI the quotes here seem to be special quotes, not normal double-quotes. Fix here: https://gist.github.com/rgeraldporter/744e4cfb3462891aeeef8109a80556f7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.