mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
22 lines
530 B
JavaScript
22 lines
530 B
JavaScript
describe('iD.OAuth', function() {
|
|
var o;
|
|
|
|
beforeEach(function() {
|
|
o = iD.OAuth();
|
|
});
|
|
|
|
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');
|
|
});
|
|
});
|
|
});
|