Updated module tests

Signed-off-by: Severin Wischmann <severinwischmann@nianticlabs.com>
This commit is contained in:
Severin Wischmann
2024-02-26 21:13:05 +01:00
parent c51118640d
commit b3f53fa1c7
@@ -15,9 +15,9 @@
*/
import { mockServices, startTestBackend } from '@backstage/backend-test-utils';
import { authModuleAtlassianProvider } from './module';
import request from 'supertest';
import { decodeOAuthState } from '@backstage/plugin-auth-node';
import request from 'supertest';
import { authModuleAtlassianProvider } from './module';
describe('authModuleAtlassianProvider', () => {
it('should start', async () => {
@@ -60,8 +60,8 @@ describe('authModuleAtlassianProvider', () => {
expect(nonceCookie).toBeDefined();
const startUrl = new URL(res.get('location'));
expect(startUrl.origin).toBe('https://atlassian.com');
expect(startUrl.pathname).toBe('/oauth/authorize');
expect(startUrl.origin).toBe('https://api.atlassian.com');
expect(startUrl.pathname).toBe('/authorize');
expect(Object.fromEntries(startUrl.searchParams)).toEqual({
response_type: 'code',
client_id: 'my-client-id',