Skip to content

Commit 71e8a73

Browse files
committed
Added Integration tests
1 parent 517c618 commit 71e8a73

File tree

5 files changed

+821
-56
lines changed

5 files changed

+821
-56
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ The project is based on [karma-chrome-launcher
123123

124124
For more information on Karma see the [homepage].
125125

126-
[homepage]: http://karma-runner.github.com
126+
[homepage]: https://karma-runner.github.io

integrationTests/karma.conf.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = function (config) {
2+
config.set({
3+
frameworks: ['mocha'],
4+
files: ['sample.test.js'],
5+
exclude: [],
6+
port: 9876,
7+
colors: true,
8+
logLevel: config.LOG_INFO,
9+
autoWatch: false,
10+
browsers: ['EdgeAnyHeadless'],
11+
singleRun: true,
12+
plugins: [require.resolve('../dist'), 'karma-mocha'],
13+
});
14+
};

integrationTests/sample.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
describe('BrowserLauncher', function () {
2+
it('Verify browser is launched', function () {
3+
if (!window?.navigator?.userAgent) {
4+
throw 'userAgent is undefined';
5+
}
6+
return true;
7+
});
8+
});

0 commit comments

Comments
 (0)