Skip to content

Commit

Permalink
rebase problem detected on proxy tests. already fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aagm committed Jun 9, 2021
1 parent d396126 commit 300e81b
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions api/apps/api/test/proxy.vector-tiles.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { OrganizationsTestUtils } from './utils/organizations.test.utils';
import { ProjectsTestUtils } from './utils/projects.test.utils';
import { ScenariosTestUtils } from './utils/scenarios.test.utils';
import { IUCNCategory } from '@marxan-api/modules/protected-areas/protected-area.geo.entity';
import { GivenUserIsLoggedIn } from './steps/given-user-is-logged-in';
import { bootstrapApplication } from 'apps/geoprocessing/test/utils';

const logger = new Logger('test-vtiles')

Expand Down Expand Up @@ -44,28 +46,9 @@ describe('ProxyVectorTilesModule (e2e)', () => {
};

beforeAll(async () => {
const moduleFixture: TestingModule = await Test.createTestingModule({
imports: [AppModule],
}).compile();
app = moduleFixture.createNestApplication();
app.useGlobalPipes(
new ValidationPipe({
transform: true,
whitelist: true,
forbidNonWhitelisted: true,
}),
);
await app.init();

const response = await request(app.getHttpServer())
.post('/auth/sign-in')
.send({
username: E2E_CONFIG.users.basic.aa.username,
password: E2E_CONFIG.users.basic.aa.password,
})
.expect(201);
app = await bootstrapApplication();

jwtToken = response.body.accessToken;
jwtToken = await GivenUserIsLoggedIn(app);

anOrganization = await OrganizationsTestUtils.createOrganization(
app,
Expand Down

0 comments on commit 300e81b

Please sign in to comment.