mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
20 lines
499 B
TypeScript
20 lines
499 B
TypeScript
import * as path from 'path';
|
|
|
|
describe('Browser Import', () => {
|
|
it('should import the Gitbeaker library though the global gitbeaker', async () => {
|
|
await page.goto(`file://${path.resolve(__dirname, 'assets', 'test-import.html')}`);
|
|
|
|
// Run import JS
|
|
/* eslint-disable */
|
|
const importObject = await page.evaluate(() => {
|
|
// @ts-ignore
|
|
const { Gitlab } = gitbeaker;
|
|
|
|
return Gitlab;
|
|
});
|
|
/* eslint-enable */
|
|
|
|
expect(importObject).toEqual({});
|
|
});
|
|
});
|