Skip to content

Commit

Permalink
Merge pull request #97 from toddjordan/mirage-0-4-2
Browse files Browse the repository at this point in the history
Upgrade to mirage 0.4.2
  • Loading branch information
acorncom authored Mar 16, 2018
2 parents 5feb9ea + e2dec7d commit e1564e5
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 46 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"ember-cli-htmlbars": "^2.0.1",
"ember-cli-htmlbars-inline-precompile": "^1.0.0",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-mirage": "^0.4.1",
"ember-cli-mirage": "^0.4.2",
"ember-cli-qunit": "^4.1.1",
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.0",
Expand Down
2 changes: 2 additions & 0 deletions tests/acceptance/list-rentals-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Service from '@ember/service';
import { module, test } from 'qunit';
import { setupApplicationTest } from 'ember-qunit';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import {
click,
currentURL,
Expand All @@ -17,6 +18,7 @@ let StubMapsService = Service.extend({

module('Acceptance | list rentals', function(hooks) {
setupApplicationTest(hooks);
setupMirage(hooks);

hooks.beforeEach(function() {
this.owner.register('service:maps', StubMapsService);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/routes/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ module('Unit | Route | index', function(hooks) {
});
route.beforeModel();
});
});
});
13 changes: 3 additions & 10 deletions tests/unit/routes/rentals/index-test.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import { run } from '@ember/runloop';
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import startMirage from '../../../helpers/setup-mirage-for-unit-test';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';

module('Unit | Route | rentals/index', function(hooks) {
setupTest(hooks);

hooks.beforeEach(function() {
startMirage(this.container);
});

hooks.afterEach(function() {
window.server.shutdown();
});
setupMirage(hooks);

test('should load all rentals', function(assert) {
let route = this.owner.lookup('route:rentals/index');
Expand All @@ -23,4 +16,4 @@ module('Unit | Route | rentals/index', function(hooks) {
});

});
});
});
13 changes: 3 additions & 10 deletions tests/unit/routes/rentals/show-test.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import { run } from '@ember/runloop';
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import startMirage from '../../../helpers/setup-mirage-for-unit-test';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';

module('Unit | Route | rentals/show', function(hooks) {
setupTest(hooks);

hooks.beforeEach(function() {
startMirage(this.container);
});

hooks.afterEach(function() {
window.server.shutdown();
});
setupMirage(hooks);

test('should load rental by id', function(assert) {
let route = this.owner.lookup('route:rentals/show');
Expand All @@ -22,4 +15,4 @@ module('Unit | Route | rentals/show', function(hooks) {
});
});
});
});
});
62 changes: 38 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,14 @@ aot-test-generators@^0.1.0:
dependencies:
jsesc "^2.5.0"

[email protected]:
version "1.2.2"
resolved "https://registry.yarnpkg.com/applause/-/applause-1.2.2.tgz#a8468579e81f67397bb5634c29953bedcd0f56c0"
dependencies:
cson-parser "^1.1.0"
js-yaml "^3.3.0"
lodash "^3.10.0"

aproba@^1.0.3:
version "1.2.0"
resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a"
Expand Down Expand Up @@ -1522,7 +1530,7 @@ broccoli-middleware@^1.0.0:
handlebars "^4.0.4"
mime "^1.2.11"

broccoli-persistent-filter@^1.0.3, broccoli-persistent-filter@^1.1.5, broccoli-persistent-filter@^1.1.6, broccoli-persistent-filter@^1.4.0, broccoli-persistent-filter@^1.4.3:
broccoli-persistent-filter@^1.0.3, broccoli-persistent-filter@^1.1.5, broccoli-persistent-filter@^1.1.6, broccoli-persistent-filter@^1.2.0, broccoli-persistent-filter@^1.4.0, broccoli-persistent-filter@^1.4.3:
version "1.4.3"
resolved "https://registry.yarnpkg.com/broccoli-persistent-filter/-/broccoli-persistent-filter-1.4.3.tgz#3511bc52fc53740cda51621f58a28152d9911bc1"
dependencies:
Expand Down Expand Up @@ -1558,6 +1566,14 @@ broccoli-plugin@^1.0.0, broccoli-plugin@^1.1.0, broccoli-plugin@^1.2.0, broccoli
rimraf "^2.3.4"
symlink-or-copy "^1.1.8"

broccoli-replace@^0.12.0:
version "0.12.0"
resolved "https://registry.yarnpkg.com/broccoli-replace/-/broccoli-replace-0.12.0.tgz#36460a984c45c61731638c53068b0ab12ea8fdb7"
dependencies:
applause "1.2.2"
broccoli-persistent-filter "^1.2.0"
minimatch "^3.0.0"

broccoli-rollup@^1.2.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/broccoli-rollup/-/broccoli-rollup-1.3.0.tgz#43a0a7798555bab54217009eb470a4ff5a056df0"
Expand Down Expand Up @@ -1914,6 +1930,10 @@ code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"

coffee-script@^1.10.0:
version "1.12.7"
resolved "https://registry.yarnpkg.com/coffee-script/-/coffee-script-1.12.7.tgz#c05dae0cb79591d05b3070a8433a98c9a89ccc53"

collection-visit@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"
Expand Down Expand Up @@ -2129,6 +2149,12 @@ crypto-random-string@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"

cson-parser@^1.1.0:
version "1.3.5"
resolved "https://registry.yarnpkg.com/cson-parser/-/cson-parser-1.3.5.tgz#7ec675e039145533bf2a6a856073f1599d9c2d24"
dependencies:
coffee-script "^1.10.0"

currently-unhandled@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea"
Expand Down Expand Up @@ -2432,12 +2458,13 @@ ember-cli-lodash-subset@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/ember-cli-lodash-subset/-/ember-cli-lodash-subset-2.0.1.tgz#20cb68a790fe0fde2488ddfd8efbb7df6fe766f2"

ember-cli-mirage@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/ember-cli-mirage/-/ember-cli-mirage-0.4.1.tgz#bfdfe61e5e74dc3881ed31f12112dae1a29f0d4c"
ember-cli-mirage@^0.4.2:
version "0.4.2"
resolved "https://registry.yarnpkg.com/ember-cli-mirage/-/ember-cli-mirage-0.4.2.tgz#410a2854baf33c5be27d5cbd5a6b548e243a0fee"
dependencies:
broccoli-funnel "^1.0.2"
broccoli-merge-trees "^1.1.0"
broccoli-replace "^0.12.0"
broccoli-stew "^1.5.0"
chalk "^1.1.1"
ember-cli-babel "^6.8.2"
Expand Down Expand Up @@ -4258,6 +4285,13 @@ js-yaml@^3.2.5, js-yaml@^3.2.7, js-yaml@^3.6.1, js-yaml@^3.9.1:
argparse "^1.0.7"
esprima "^4.0.0"

js-yaml@^3.3.0:
version "3.11.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef"
dependencies:
argparse "^1.0.7"
esprima "^4.0.0"

jsbn@~0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
Expand All @@ -4283,26 +4317,6 @@ jscodeshift@^0.3.29:
temp "^0.8.1"
write-file-atomic "^1.2.0"

jscodeshift@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/jscodeshift/-/jscodeshift-0.4.1.tgz#da91a1c2eccfa03a3387a21d39948e251ced444a"
dependencies:
async "^1.5.0"
babel-plugin-transform-flow-strip-types "^6.8.0"
babel-preset-es2015 "^6.9.0"
babel-preset-stage-1 "^6.5.0"
babel-register "^6.9.0"
babylon "^6.17.3"
colors "^1.1.2"
flow-parser "^0.*"
lodash "^4.13.1"
micromatch "^2.3.7"
node-dir "0.1.8"
nomnom "^1.8.1"
recast "^0.12.5"
temp "^0.8.1"
write-file-atomic "^1.2.0"

jsesc@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b"
Expand Down

0 comments on commit e1564e5

Please sign in to comment.