Fix specs
This commit is contained in:
@ -66,9 +66,9 @@ router.get('/changelog', async ctx => {
|
||||
// home page
|
||||
router.get('/', async ctx => {
|
||||
const lastSignedIn = ctx.cookies.get('lastSignedIn');
|
||||
const accessToken = ctx.cookies.get('accessToken');
|
||||
const domain = parseDomain(ctx.request.hostname);
|
||||
const subdomain = domain ? domain.subdomain : undefined;
|
||||
const accessToken = ctx.cookies.get('accessToken');
|
||||
|
||||
// Because we render both the signed in and signed out views depending
|
||||
// on a cookie it's important that the browser does not render from cache.
|
||||
|
@ -18,7 +18,7 @@ describe('#index', async () => {
|
||||
|
||||
it('should render app if there is an accessToken', async () => {
|
||||
const res = await server.get('/', {
|
||||
headers: { authorization: 'Bearer thisIsAnAccessToken' },
|
||||
headers: { Cookie: ['accessToken=12345667'] },
|
||||
});
|
||||
const html = await res.text();
|
||||
expect(res.status).toEqual(200);
|
||||
|
Reference in New Issue
Block a user