chore: 🤖 add placeholer auth-token model

This commit is contained in:
Randall Morey committed 2020-09-22 09:28:38 -04:00
1 parent 2f9c064fd4
commit f49df60639
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 {}
+3
View File
@@ -0,0 +1,3 @@
import GeneratedAuthTokenModel from '../generated/models/auth-token';
export default class AuthTokenModel extends GeneratedAuthTokenModel {}
+1
View File
@@ -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);
});
});