beforeEach(() => {
   container     = { lookup() {} };
   store         = EphemeralStore.create();
   authenticator = Authenticator.create();
   session       = InternalSession.create({ store, container });
   sinon.stub(container, 'lookup').withArgs('authenticator').returns(authenticator);
 });
 beforeEach(function() {
   sinon = sinonjs.sandbox.create();
   container = { lookup() {} };
   store = EphemeralStore.create();
   authenticator = Authenticator.create();
   session = createWithContainer(InternalSession, { store }, container);
   sinon.stub(container, 'lookup').withArgs('authenticator').returns(authenticator);
 });
Esempio n. 3
0
 beforeEach(() => {
   authenticator = Base.create();
 });