mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-08 07:16:49 +00:00
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).
15 lines
420 B
JavaScript
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);
|
|
});
|
|
});
|