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

Commit

Permalink
Merge pull request #216 from typed-ember/bump-ember-cli
Browse files Browse the repository at this point in the history
chore(deps): upgrade Ember CLI to latest
  • Loading branch information
chriskrycho authored Nov 16, 2020
2 parents 7f46c5c + 4d5dc04 commit eec179d
Show file tree
Hide file tree
Showing 170 changed files with 2,974 additions and 7,883 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: node_js
node_js:
# we recommend testing addons with the same minimum supported node version as Ember CLI
# so that your addon works for all apps
- "8"
- "10"

sudo: false
dist: trusty
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ init:
# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "8"
- nodejs_version: "10"

# Install scripts. (runs after repo cloning)
install:
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trigger:
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
versionSpec: '10.x'
displayName: 'Install Node.js'

- script: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import { describe, it, beforeEach, afterEach } from 'mocha';
import { describe, it } from 'mocha';
import { expect } from 'chai';
import startApp from '<%= dasherizedPackageName %>/tests/helpers/start-app';
<% if (destroyAppExists) { %>import destroyApp from '<%= dasherizedPackageName %>/tests/helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>
import { setupApplicationTest } from 'ember-mocha';
import { visit, currentURL } from '@ember/test-helpers';

describe('<%= friendlyTestName %>', function() {
let application;
setupApplicationTest();

beforeEach(function() {
application = startApp();
});

afterEach(function() {
<% if (destroyAppExists) { %>destroyApp(application);<% } else { %>run(application, 'destroy');<% } %>
});

it('can visit /<%= dasherizedModuleName %>', function() {
visit('/<%= dasherizedModuleName %>');

return andThen(() => {
expect(currentURL()).to.equal('/<%= dasherizedModuleName %>');
});
it('can visit /<%= dasherizedModuleName %>', async function() {
await visit('/<%= dasherizedModuleName %>');
expect(currentURL()).to.equal('/<%= dasherizedModuleName %>');
});
});

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { test } from 'qunit';
import moduleForAcceptance from '<%= testFolderRoot %>/tests/helpers/module-for-acceptance';
import { module, test } from 'qunit';
import { visit, currentURL } from '@ember/test-helpers';
import { setupApplicationTest } from 'ember-qunit';

moduleForAcceptance('<%= friendlyTestName %>');
module('<%= friendlyTestName %>', function(hooks) {
setupApplicationTest(hooks);

test('visiting /<%= dasherizedModuleName %>', function(assert) {
visit('/<%= dasherizedModuleName %>');
test('visiting /<%= dasherizedModuleName %>', async function(assert) {
await visit('/<%= dasherizedModuleName %>');

andThen(function() {
assert.equal(currentURL(), '/<%= dasherizedModuleName %>');
});
});

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ import { describe, it } from 'mocha';
import { setupTest } from 'ember-mocha';

describe('<%= friendlyTestDescription %>', function() {
setupTest('adapter:<%= dasherizedModuleName %>', {
// Specify the other units that are required for this test.
// needs: ['serializer:foo']
});
setupTest();

// Replace this with your real tests.
it('exists', function() {
let adapter = this.subject();
let adapter = this.owner.lookup('adapter:<%= dasherizedModuleName %>');
expect(adapter).to.be.ok;
});
});
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { moduleFor, test } from 'ember-qunit';
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';

moduleFor('adapter:<%= dasherizedModuleName %>', '<%= friendlyTestDescription %>', {
// Specify the other units that are required for this test.
// needs: ['serializer:foo']
});
module('<%= friendlyTestDescription %>', function(hooks) {
setupTest(hooks);

// Replace this with your real tests.
test('it exists', function(assert) {
let adapter = this.subject();
assert.ok(adapter);
// Replace this with your real tests.
test('it exists', function(assert) {
let adapter = this.owner.lookup('adapter:<%= dasherizedModuleName %>');
assert.ok(adapter);
});
});

This file was deleted.

65 changes: 0 additions & 65 deletions blueprints/component-test/index.js

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit eec179d

Please sign in to comment.