Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// render the component on the page
this.render();
assert.equal(this.$('.foo').text(), 'bar');
});
test('It can calculate the result', function(assert) {
assert.expect(1);
const subject = this.subject();
subject.set('value', 'foo');
assert.equal(subject.get('result'), 'bar');
});
skip('disabled test');
skip('disabled test', function(assert) { });
// https://github.com/emberjs/rfcs/blob/master/text/0232-simplify-qunit-testing-api.md#qunit-nested-modules-api
QUnit.module('some description', function(hooks) {
hooks.before(() => {});
hooks.beforeEach(() => {});
hooks.afterEach(() => {});
hooks.after(() => {});
QUnit.test('it blends', function(assert) {
assert.ok(true, 'of course!');
});
});
// http://rwjblue.com/2017/10/23/ember-qunit-simplication/#setuprenderingtest
this.render();
assert.equal(this.$('.foo').text(), 'bar');
});
test('It can calculate the result', function(assert) {
assert.expect(1);
const subject = this.subject();
subject.set('value', 'foo');
assert.equal(subject.get('result'), 'bar');
});
skip('disabled test');
skip('disabled test', function(assert) { });
function ignoreIt(testElement) {
skip(`${testElement.title}`, function(/*assert*/) {});
}