chore: 🤖 make proxy fields first-class attributes on session
This commit is contained in:
4 files changed
+48
-9
No files matched your search
@@ -26,4 +26,15 @@ module('Unit | Model | session', function(hooks) {
|
||||
});
|
||||
assert.ok(model.isCancelable);
|
||||
});
|
||||
|
||||
test('it computes a proxy attribute', function (assert) {
|
||||
let store = this.owner.lookup('service:store');
|
||||
let model = store.createRecord('session');
|
||||
assert.equal(model.proxy, null);
|
||||
model.setProperties({
|
||||
proxy_address: 'localhost',
|
||||
proxy_port: '12345'
|
||||
});
|
||||
assert.equal(model.proxy, 'localhost:12345');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user