Files
Fleetbase-Mirror-Repo/console/tests/unit/models/company-user-test.js
TemuulenBM 6cd0625753 Refactor user model retrieval
This commit refactors the way the user model is retrieved in the
organization-users.js file. Instead of using findAll, it now uses
query to filter users based on the company_id. This change was
necessary to improve the performance of the user retrieval process
and to ensure that only relevant users are returned (#1234).
2024-02-01 18:01:35 +08:00

15 lines
420 B
JavaScript

import { module, test } from 'qunit';
import { setupTest } from '@fleetbase/console/tests/helpers';
module('Unit | Model | company user', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('company-user', {});
assert.ok(model);
});
});