mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 09:22:42 +08:00
Add front end service for staff controls
This commit is contained in:
@ -142,6 +142,13 @@ QUnit.test('find embedded', function(assert) {
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test('meta types', function(assert) {
|
||||
const store = createStore();
|
||||
return store.find('barn', 1).then(function(f) {
|
||||
assert.equal(f.get('owner.name'), 'Old MacDonald', 'it has the embedded farmer');
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test('findAll embedded', function(assert) {
|
||||
const store = createStore();
|
||||
return store.findAll('fruit').then(function(fruits) {
|
||||
@ -156,4 +163,4 @@ QUnit.test('findAll embedded', function(assert) {
|
||||
|
||||
assert.equal(fruits.objectAt(2).get('farmer.name'), 'Luke Skywalker');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user