chore: 🤖 add placeholer auth-token model
This commit is contained in:
4 files changed
+25
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import BaseModel from '../../models/base';
|
||||
|
||||
/**
|
||||
* NOTE: we don't yet use this model for display in the UI and thus no
|
||||
* attributes are included at this time. This model is used only for
|
||||
* validating that an auth token exists.
|
||||
*/
|
||||
export default class GeneratedAuthTokenModel extends BaseModel {}
|
||||
@@ -0,0 +1,3 @@
|
||||
import GeneratedAuthTokenModel from '../generated/models/auth-token';
|
||||
|
||||
export default class AuthTokenModel extends GeneratedAuthTokenModel {}
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from 'api/models/auth-token';
|
||||
@@ -0,0 +1,13 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupTest } from 'ember-qunit';
|
||||
|
||||
module('Unit | Model | auth token', 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('auth-token', {});
|
||||
assert.ok(model);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user