Skip to content

Commit

Permalink
WIP: start a test for the blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Sep 18, 2020
1 parent 1071cd0 commit 204b6ea
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ember-cli-fastboot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"broccoli-plugin": "^1.3.1",
"chalk": "^2.4.1",
"ember-cli-babel": "^7.1.0",
"ember-cli-blueprint-test-helpers": "^0.19.2",
"ember-cli-lodash-subset": "2.0.1",
"ember-cli-preprocess-registry": "^3.1.2",
"ember-cli-version-checker": "^3.0.0",
Expand Down
23 changes: 23 additions & 0 deletions packages/ember-cli-fastboot/test/default-blueprint-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use strict';

const blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers');
const setupTestHooks = blueprintHelpers.setupTestHooks;
const emberNew = blueprintHelpers.emberNew;
const emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy;

const expect = require('ember-cli-blueprint-test-helpers/chai').expect;

describe('Acceptance: ember generate and destroy default-blueprint', function() {
setupTestHooks(this);

it('default-blueprint foo', async function() {
let args = ['ember-cli-fastboot'];

// pass any additional command line options in the arguments array
await emberNew();

const file = await emberGenerateDestroy(args);

expect(file('config/targets.js')).to.contain(`node: 'current'`);
});
});

0 comments on commit 204b6ea

Please sign in to comment.