require('../../browser/annict.min');

describe('authorization service', () => {

    const annict = new Annict();
    const OAuth  = annict.OAuth;

    it('support authorize', done => {
        window.location.assign = sinon.spy();
        OAuth.authorize();

        expect(window.location.assign).to.have.been.called;
        done();
    });
});

@@ -141,16 +141,131 @@
 OAuth;%0A%0A
+    it('token method throw error', done =%3E %7B%0A        expect(OAuth.token).to.throw(Error);%0A        done();%0A    %7D);%0A%0A
     it('

test for token method on browser