mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
20 lines
525 B
JavaScript
20 lines
525 B
JavaScript
describe('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('#api', function() {
|
|
it('gets and sets url', function() {
|
|
expect(o.api('foo')).to.equal(o);
|
|
expect(o.api()).to.equal('foo');
|
|
});
|
|
});
|
|
|
|
});
|