Skip to content
This repository has been archived by the owner on Nov 25, 2018. It is now read-only.

Commit

Permalink
Add "test-helper" blueprint test
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Mar 14, 2016
1 parent 0dc2f71 commit 6d2447b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions node-tests/blueprints/test-helper-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use strict';

var setupTestHooks = require('ember-cli-blueprint-test-helpers/lib/helpers/setup');
var BlueprintHelpers = require('ember-cli-blueprint-test-helpers/lib/helpers/blueprint-helper');
var generateAndDestroy = BlueprintHelpers.generateAndDestroy;

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

it('test-helper foo', function() {
return generateAndDestroy(['test-helper', 'foo'], {
files: [
{
file: 'tests/helpers/foo.js',
contains: [
"import Ember from 'ember';",
'export default Ember.Test.registerAsyncHelper(\'foo\', function(app) {\n\n}'
]
}
]
});
});
});

0 comments on commit 6d2447b

Please sign in to comment.