Sha256: cc739a276c8d7772cc25ad9ffb0d33b1317911fa76144b2e5abff241e91ff022
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
import { run } from '@ember/runloop'; import Adapter from '../../lib/adapters/adapter'; import { moduleFor, AbstractTestCase } from 'internal-test-helpers'; var adapter; moduleFor( 'ember-testing Adapter', class extends AbstractTestCase { constructor() { super(); adapter = new Adapter(); } teardown() { run(adapter, adapter.destroy); } ['@test exception throws'](assert) { var error = 'Hai'; var thrown; try { adapter.exception(error); } catch (e) { thrown = e; } assert.equal(thrown, error); } } );
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.5.1.1 | dist/es/ember-testing/tests/adapters/adapter_test.js |
discourse-ember-source-3.5.1.0 | dist/dist/es/ember-testing/tests/adapters/adapter_test.js |