mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
23 lines
561 B
JavaScript
23 lines
561 B
JavaScript
describe('iD.OAuth', function() {
|
|
var o;
|
|
|
|
beforeEach(function() {
|
|
context = iD();
|
|
o = iD.OAuth(context);
|
|
});
|
|
|
|
describe('#logout', function() {
|
|
it('can log out and will no longer be authenticated', function() {
|
|
expect(o.logout()).to.equal(o);
|
|
expect(o.authenticated()).not.to.be.ok;
|
|
});
|
|
});
|
|
|
|
describe('#url', function() {
|
|
it('gets and sets url', function() {
|
|
expect(o.url('foo')).to.equal(o);
|
|
expect(o.url()).to.equal('foo');
|
|
});
|
|
});
|
|
});
|