Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
axelssonHakan committed Nov 10, 2017
1 parent 97c578a commit abb92dd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/unit/plugins/reporter/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ const utils = require('../../../../src/protractor/plugins/reporter/utils');

describe('Reporter index', () => {
let sandbox;
let browser;
const Capabilities = new Map();
Capabilities.set('browserName', 'chrome');
Capabilities.set('version', '62.0.3202.75');
Capabilities.set('platform', 'Linux');

beforeEach(() => {
sandbox = sinon.sandbox.create();
Expand All @@ -17,6 +22,11 @@ describe('Reporter index', () => {
description: 'description',
version: 'x.y.z',
});
browser = {
getCapabilities: sandbox.stub().returns(Promise.resolve(Capabilities)),
artifactsPath: 'artifactsPath',
reporterInfo: 'reporterInfo',
};
});

afterEach(() => {
Expand All @@ -27,11 +37,6 @@ describe('Reporter index', () => {
let runner;
let options;

const browser = {
artifactsPath: 'artifactsPath',
reporterInfo: 'reporterInfo',
};

beforeEach(() => {
runner = {
on: sandbox.stub(),
Expand All @@ -48,11 +53,6 @@ describe('Reporter index', () => {
sandbox.stub(utils, 'saveScreenshot').returns(Promise.resolve());
});

// it('should wait on reporter plugin tear down', () => {
// uiReport.call(uiReport, runner, options);
// expect(options.reporterPlugin.teardown()).to.eventually.equal(true);
// });

it('should call pass correctly', () => {
const test = {
fullTitle: sandbox.stub().returns('Title'),
Expand Down

0 comments on commit abb92dd

Please sign in to comment.