Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Committing the dist directory so I can sync this repo using npm/githu…
Browse files Browse the repository at this point in the history
…b in the short term.
  • Loading branch information
rsshilli committed May 16, 2019
1 parent 85b8132 commit 69954d3
Show file tree
Hide file tree
Showing 66 changed files with 6,682 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
npm-debug.log
node_modules
tmp
dist
output.json
5 changes: 5 additions & 0 deletions dist/__mocks__/bluebird.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

jest.autoMockOff();
module.exports = require.requireActual('bluebird');
jest.autoMockOn();
11 changes: 11 additions & 0 deletions dist/__mocks__/chokidar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';

var chokidar = {
watcher: {
on: jest.genMockFunction(),
once: jest.genMockFunction()
},
watch: jest.genMockFunction()
};
chokidar.watch.mockReturnValue(chokidar.watcher);
module.exports = chokidar;
5 changes: 5 additions & 0 deletions dist/__mocks__/colors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
supportsColor: {}
};
3 changes: 3 additions & 0 deletions dist/__mocks__/ddp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = jest.genMockFn();
3 changes: 3 additions & 0 deletions dist/__mocks__/freeport.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = jest.genMockFn();
13 changes: 13 additions & 0 deletions dist/__mocks__/hapi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

var Hapi = {
instance: {
connection: jest.genMockFn(),
route: jest.genMockFn(),
start: jest.genMockFn()
},
Server: function Server() {
return Hapi.instance;
}
};
module.exports = Hapi;
5 changes: 5 additions & 0 deletions dist/__mocks__/request.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
post: jest.genMockFunction()
};
6 changes: 6 additions & 0 deletions dist/__mocks__/selenium-standalone.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
'use strict';

module.exports = {
install: jest.genMockFunction(),
start: jest.genMockFunction()
};
5 changes: 5 additions & 0 deletions dist/__mocks__/webdriverio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
remote: jest.genMockFunction()
};
5 changes: 5 additions & 0 deletions dist/__mocks__/xolvio-sync-webdriverio.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

module.exports = {
wrapAsyncObject: jest.genMockFunction()
};
19 changes: 19 additions & 0 deletions dist/__tests__/browserstack-manager-spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
jest.dontMock('../lib/browserstack-manager');
describe('BrowserStack Session Manager', function () {
describe('Constructor', function () {
it('sets the browserStackUrl', function () {
var BrowserStackManager = require('../lib/browserstack-manager');

var options = {
port: 1234,
browser: 'something',
user: 'testus3r',
key: '12345678',
host: 'browserstack.com'
};
var browserStackBaseUrl = 'https://' + options.user + ':' + options.key + '@' + options.host;
var session = new BrowserStackManager(options);
expect(session.options.browserStackUrl).toBe(browserStackBaseUrl);
});
});
});
Loading

0 comments on commit 69954d3

Please sign in to comment.