Skip to content

Commit

Permalink
Auto stash before revert of "Basic support for unit testing added yeo…
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Jun 5, 2019
1 parent 99d135e commit c95d9d6
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions test/tests-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ const path = require('path');
const helpers = require('yeoman-test');
const assert = require('yeoman-assert');

function unitPresent() {
assert.fileContent('app/index.html', 'type="module" src="scripts/main.js"');
assert.fileContent('app/scripts/main.js', 'export function greeting');
assert.fileContent('package.json', '"test:unit": "');
}

function unitNotPresent() {
assert.noFileContent('app/index.html', 'type="module" src="scripts/main.js"');
assert.noFileContent('app/scripts/main.js', 'export function greeting');
assert.noFileContent('package.json', '"test:unit": "');
}

function e2ePresent() {
assert.fileContent('package.json', '"cypress": "');
assert.fileContent('package.json', '"start-server-and-test": "');
Expand All @@ -26,7 +38,7 @@ describe('Test handler', () => {
});

it.skip('Should not add unit tests', () => {
//@TODO
unitNotPresent();
});

it('Should not add e2e tests', () => {
Expand All @@ -43,7 +55,7 @@ describe('Test handler', () => {
});

it.skip('Should not add any unit tests', () => {
//@TODO
unitNotPresent();
});

it('Should not add e2e tests', () => {
Expand All @@ -60,7 +72,7 @@ describe('Test handler', () => {
});

it.skip('Should not add any unit tests', () => {
//@TODO
unitNotPresent();
});

it('Should add e2e tests', () => {
Expand All @@ -84,7 +96,12 @@ describe('Test handler', () => {
e2ePresent();
});

it.skip('Should add unit tests Basics', () => {
unitPresent();
});

it.skip('Should add unit tests for Ava', () => {
unitPresent();
//@TODO
});

Expand Down Expand Up @@ -121,6 +138,10 @@ describe('Test handler', () => {
e2eNotPresent();
});

it.skip('Should add unit tests Basics', () => {
unitPresent();
});

it.skip('Should add unit tests for Jest', () => {
//@TODO
});
Expand Down Expand Up @@ -158,6 +179,10 @@ describe('Test handler', () => {
e2eNotPresent();
});

it.skip('Should add unit tests Basics', () => {
unitPresent();
});

it.skip('Should add unit tests for Jasmine', () => {
//@TODO
});
Expand Down Expand Up @@ -195,6 +220,10 @@ describe('Test handler', () => {
e2eNotPresent();
});

it.skip('Should add unit tests Basics', () => {
unitPresent();
});

it.skip('Should add unit tests for Mocha (TDD)', () => {
//@TODO
});
Expand Down Expand Up @@ -232,6 +261,10 @@ describe('Test handler', () => {
e2eNotPresent();
});

it.skip('Should add unit tests Basics', () => {
unitPresent();
});

it.skip('Should add unit tests for Mocha (BDD)', () => {
//@TODO
});
Expand Down

0 comments on commit c95d9d6

Please sign in to comment.