Files
threshold-ui/addons/api/tests/unit/models/connection-recording-test.js
T
Cameron Perera a63776e76f Icu 9415 remove sorted computed value for connections channels (#276)
* refactor: 💡 remove sorted connections from session recording

Removed from session recording model and respective templates

✅ Closes: ICU-9415

* refactor: 💡 remove sorted channels from connections model

and removed from the appropriate templates and breadcrumb
2023-05-23 16:10:39 -05:00

24 lines
765 B
JavaScript

import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Model | connection-recording', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('connection-recording', {});
assert.ok(model);
});
test('it has channels as a relationship', async function (assert) {
assert.expect(1);
const store = this.owner.lookup('service:store');
const model = store.createRecord('connection-recording', {
channel_recordings: [store.createRecord('channel-recording')],
});
const channel_recordings = await model.channel_recordings;
assert.strictEqual(channel_recordings.length, 1);
});
});