Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function setupApplicationTest(hooks: NestedHooks, options?: SetupTestOptions) {
emberQunitSetupApplicationTest(hooks, options);
setupMirage(hooks);
injectCustomAssertions(hooks);
}
export function setupOSFApplicationTest(hooks: any) {
setupApplicationTest(hooks);
hooks.beforeEach(async () => {
faker.seed(17);
});
hooks.afterEach(async (assert: any) => {
assert.dom('img[alt*="Missing translation"]').doesNotExist();
});
}
export function setupApplicationTest(hooks) {
defaultSetup(hooks);
setupPretender(hooks);
}
module(`Application mode | Property | ${name}`, function(hooks) {
setupApplicationTest(hooks);
let adapter = new ApplicationAdapter(hooks);
hooks.beforeEach(function() {
this.adapter = adapter;
});
cb(test, 'application');
});