language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | emberjs | ember.js | 3aace9b6fee8da49c1e7672647fd42ef0309c0e8.json | Use inner tag for dirtying | packages/ember-glimmer/lib/helper.ts | @@ -2,8 +2,8 @@
@module @ember/component
*/
-import { Dict, Opaque } from '@glimmer/util';
import { DirtyableTag } from '@glimmer/reference';
+import { Dict, Opaque } from '@glimmer/util';
import { FrameworkObject } from 'ember-runtime';
import { symbol } from 'ember-utils';
@@ -87,7 +87,7 @@ let Helper = Fram... | true |
Other | emberjs | ember.js | 3aace9b6fee8da49c1e7672647fd42ef0309c0e8.json | Use inner tag for dirtying | packages/ember-metal/lib/tags.js | @@ -47,7 +47,7 @@ export function markObjectAsDirty(meta, propertyKey) {
let propertyTag = tags !== undefined ? tags[propertyKey] : undefined;
if (propertyTag !== undefined) {
- propertyTag.dirty();
+ propertyTag.inner.dirty();
}
if (propertyKey === 'content' && meta.isProxy()) { | true |
Other | emberjs | ember.js | 40bc56ca3c87edc9f0b9ae63772a1b706e67cfaf.json | Remove arity check from initializer | packages/ember-application/lib/system/engine.js | @@ -12,7 +12,7 @@ import {
privatize as P
} from 'container';
import DAG from 'dag-map';
-import { assert, deprecate } from 'ember-debug';
+import { assert } from 'ember-debug';
import { get, set } from 'ember-metal';
import DefaultResolver from './resolver';
import EngineInstance from './engine-instance';
@@ -... | true |
Other | emberjs | ember.js | 40bc56ca3c87edc9f0b9ae63772a1b706e67cfaf.json | Remove arity check from initializer | packages/ember-application/tests/system/initializers_test.js | @@ -18,7 +18,7 @@ moduleFor('Ember.Application initializers', class extends AutobootApplicationTes
});
}
- createSecondApplication(options, MyApplication=Application) {
+ createSecondApplication(options, MyApplication = Application) {
let myOptions = assign(this.applicationOptions, {
rootElement... | true |
Other | emberjs | ember.js | 27a8df9c5916795c869e985fafcab69bb67af01e.json | Add 2.18.0-beta.4 to the Changelog
[ci skip]
(cherry picked from commit 2d0923c6d1d05d432d07769cdc14d77a94b96115) | CHANGELOG.md | @@ -1,5 +1,8 @@
# Ember Changelog
+### 2.18.0-beta.4 (December 19, 2017)
+- [#15982](https://github.com/emberjs/ember.js/pull/15982) [BUGFIX] Fix issue with unchaining ChainNodes (again)
+
### 2.18.0-beta.3 (December 12, 2017)
- [#15924](https://github.com/emberjs/ember.js/pull/15924) / [#15940](https://github.c... | false |
Other | emberjs | ember.js | 9ee5e9cb327b716fe7b83c6daa1a6d215c79f1cc.json | remove unneeded `OVERRIDE_CONTAINER_KEY` | packages/ember-runtime/lib/system/object.js | @@ -9,7 +9,6 @@ import Observable from '../mixins/observable';
import { assert } from 'ember-debug';
import { DEBUG } from 'ember-env-flags';
-let OVERRIDE_CONTAINER_KEY = symbol('OVERRIDE_CONTAINER_KEY');
let OVERRIDE_OWNER = symbol('OVERRIDE_OWNER');
/**
@@ -26,10 +25,6 @@ const EmberObject = CoreObject.exten... | false |
Other | emberjs | ember.js | c1eb8fe1ab717ac49ddd4d15d7abddc3e8d6ada6.json | remove IE9 test fallback | packages/ember-glimmer/tests/integration/helpers/input-test.js | @@ -638,17 +638,6 @@ moduleFor(`Helpers test: {{input type='text'}}`, class extends InputRenderingTes
this.render(`{{input ${ attrs.replace("%x", value) }}}`);
}
- assertValue(expected) {
- let type = this.$input().attr('type');
-
- if (type !== 'range') {
- this.assert.ok(true, 'IE9 d... | false |
Other | emberjs | ember.js | 1f9869a1aeb35e194b901739f8880f9315593a1f.json | enforce typechecker in CI | bin/run-tests.js | @@ -243,11 +243,10 @@ function runChecker(bin, args) {
function codeQualityChecks() {
var checkers = [
- // TODO: Uncomment this to enable TS checker too
- // runChecker('node', [
- // require.resolve('typescript/bin/tsc'),
- // '--noEmit'
- // ]),
+ runChecker('node', [
+ require.resol... | false |
Other | emberjs | ember.js | a8d8c9ad00d34d1b1f461212942def6b0c528933.json | remove IE9 testing checks | packages/ember-glimmer/tests/integration/helpers/custom-helper-test.js | @@ -591,79 +591,27 @@ moduleFor('Helpers test: custom helpers', class extends RenderingTest {
}
});
-// these feature detects prevent errors in these tests
-// on platforms (*cough* IE9 *cough*) that do not
-// property support `Object.freeze`
-let pushingIntoFrozenArrayThrows = (() => {
- let array = [];
- Obj... | false |
Other | emberjs | ember.js | 5157c06e7ba3bb14f67fc3a75fe402b7e258c7f6.json | enforce eslint and tslint in CI | .travis.yml | @@ -66,4 +66,4 @@ env:
- TEST_SUITE=blueprints
- TEST_SUITE=travis-browsers DISABLE_JSCS=true DISABLE_JSHINT=true
- TEST_SUITE=each-package-tests BUILD_TYPE=alpha PUBLISH=true
-
+ - TEST_SUITE=code-quality | true |
Other | emberjs | ember.js | 5157c06e7ba3bb14f67fc3a75fe402b7e258c7f6.json | enforce eslint and tslint in CI | bin/run-tests.js | @@ -3,10 +3,12 @@
/* eslint-disable no-console */
var RSVP = require('rsvp');
+var execFile = require('child_process').execFile;
var chalk = require('chalk');
var FEATURES = require('../broccoli/features');
var getPackages = require('../lib/packages');
var runInSequence = require('../lib/run-in-sequence');
+va... | true |
Other | emberjs | ember.js | 1c58c8d1fd87b9c2b888274e5ac2801e1744f164.json | fix tslint errors | node-tests/.eslintrc.js | @@ -3,6 +3,9 @@ module.exports = {
mocha: true,
node: true,
},
+ parserOptions: {
+ ecmaVersion: 8,
+ },
rules: {
},
}; | true |
Other | emberjs | ember.js | 1c58c8d1fd87b9c2b888274e5ac2801e1744f164.json | fix tslint errors | packages/ember-glimmer/lib/component-managers/abstract.ts | @@ -14,7 +14,7 @@ import { IArguments } from '@glimmer/runtime/dist/types/lib/vm/arguments';
import {
Destroyable,
Opaque,
- Option
+ Option
} from '@glimmer/util';
import { DEBUG } from 'ember-env-flags';
import DebugStack from '../utils/debug-stack'; | true |
Other | emberjs | ember.js | 1c58c8d1fd87b9c2b888274e5ac2801e1744f164.json | fix tslint errors | packages/ember-glimmer/lib/helpers/if-unless.ts | @@ -14,7 +14,7 @@ import {
Arguments,
PrimitiveReference,
VM
-} from '@glimmer/runtime'
+} from '@glimmer/runtime';
import { assert } from 'ember-debug';
import {
CachedReference, | true |
Other | emberjs | ember.js | 1c58c8d1fd87b9c2b888274e5ac2801e1744f164.json | fix tslint errors | packages/ember-glimmer/lib/helpers/loc.ts | @@ -41,4 +41,3 @@ import { String as StringUtils } from 'ember-runtime';
export default helper(function (params) {
return StringUtils.loc.apply(null, params);
});
- | true |
Other | emberjs | ember.js | 1c58c8d1fd87b9c2b888274e5ac2801e1744f164.json | fix tslint errors | packages/ember-glimmer/lib/template_registry.ts | @@ -3,7 +3,7 @@ import { WrappedTemplateFactory } from './template';
// to support Ember.TEMPLATES but shield ember internals from this legacy
// global API.
interface TemplatesRegistry {
- [name: string]: WrappedTemplateFactory
+ [name: string]: WrappedTemplateFactory;
}
let TEMPLATES: TemplatesRegistry = {};
| true |
Other | emberjs | ember.js | 3be6ce4c2900ec377560056236e79f8a9c2fea7f.json | remove IE9 soft-fails check | packages/ember-metal/tests/descriptor_test.js | @@ -5,35 +5,6 @@ import {
descriptor
} from '..';
-// IE9 soft-fails when trying to delete a non-configurable property
-const hasCompliantDelete = (function() {
- let obj = {};
-
- Object.defineProperty(obj, 'zomg', { configurable: false, value: 'zomg' });
-
- try {
- delete obj.zomg;
- } catch (e) {
- ... | false |
Other | emberjs | ember.js | ac10de2953edf070d12f229070a857b8bbb11a5d.json | Fix unbalanced chaining
When mutating the chains (`remove()` here) we must call `writableChains()`
to "fork" it from the parent. | packages/ember-metal/lib/watch_path.js | @@ -29,7 +29,7 @@ export function unwatchPath(obj, keyPath, meta) {
if (counter === 1) {
m.writeWatching(keyPath, 0);
- m.readableChains().remove(keyPath);
+ m.writableChains(makeChainNode).remove(keyPath);
} else if (counter > 1) {
m.writeWatching(keyPath, counter - 1);
} | false |
Other | emberjs | ember.js | aa36194eb06daf5a2e62108993ed90fb836de4b3.json | Fix broken test
Previously this was passing in a computed property descriptor into
`lastIndexOf`, which only conincidentally worked. It did `desc > get(this, 'length')`
which was always false which causes it to reassign the value and
avoided any problems and appeared to "work". | packages/ember-runtime/tests/suites/array/lastIndexOf.js | @@ -1,3 +1,4 @@
+import { get } from 'ember-metal';
import { SuiteModuleBuilder } from '../suite';
const suite = SuiteModuleBuilder.create();
@@ -45,14 +46,14 @@ suite.test('should return -1 when no match is found even startAt search location
let obj = this.newObject(this.newFixture(3));
let foo = {};
- eq... | false |
Other | emberjs | ember.js | 028f0e672a611339357484e1c9be1e7d51097004.json | correct variable declaration | packages/ember-runtime/lib/computed/reduce_computed_macros.js | @@ -782,6 +782,7 @@ function propertySort(itemsKey, sortPropertiesKey) {
this.notifyPropertyChange(key);
}
+ let itemsKeyIsAtThis = (itemsKey === '@this');
let normalizedSortProperties = normalizeSortProperties(sortProperties);
activeObservers = normalizedSortProperties.map(([prop]) => {
... | false |
Other | emberjs | ember.js | 1ce33af5a79e71a24597fbc8035c0560c4876bb7.json | fix tag in action modifier | packages/ember-glimmer/lib/modifiers/action.ts | @@ -2,7 +2,7 @@ import {
Simple
} from '@glimmer/interfaces';
import {
- TagWrapper
+ TagWrapper, RevisionTag
} from '@glimmer/reference';
import {
Arguments,
@@ -11,7 +11,7 @@ import {
DynamicScope,
ModifierManager,
} from '@glimmer/runtime';
-import {
+import {
Destroyable
} from '@glimmer/uti... | false |
Other | emberjs | ember.js | cd19c1420c91a8c5090805fa6ae87fe350f7f65c.json | fix wrapper in top level outlet | packages/ember-glimmer/lib/component-managers/outlet.ts | @@ -3,6 +3,7 @@ import {
Option,
Unique
} from '@glimmer/interfaces';
+import { WrappedBuilder, ParsedLayout } from '@glimmer/opcode-compiler';
import {
Tag, VersionedPathReference
} from '@glimmer/reference';
@@ -128,6 +129,25 @@ class TopLevelOutletComponentManager extends OutletComponentManager
retu... | false |
Other | emberjs | ember.js | 6fe5504e2fd50e4e70756e7c035d2b60160efd46.json | Remove redundant registrations
These are already handled in `buildOwner()` | packages/ember-glimmer/tests/integration/helpers/input-test.js | @@ -1,17 +1,10 @@
import { assign } from 'ember-utils';
import { set } from 'ember-metal';
-import { TextField, Checkbox, Component } from '../../utils/helpers';
+import { Component } from '../../utils/helpers';
import { RenderingTest, moduleFor } from '../../utils/test-case';
import { runDestroy } from 'internal-t... | true |
Other | emberjs | ember.js | 6fe5504e2fd50e4e70756e7c035d2b60160efd46.json | Remove redundant registrations
These are already handled in `buildOwner()` | packages/ember-glimmer/tests/integration/helpers/text-area-test.js | @@ -1,17 +1,10 @@
import { assign } from 'ember-utils';
import { set } from 'ember-metal';
-import { TextArea } from '../../utils/helpers';
import { RenderingTest, moduleFor } from '../../utils/test-case';
import { classes } from '../../utils/test-helpers';
import { applyMixins } from '../../utils/abstract-test-ca... | true |
Other | emberjs | ember.js | 6fe5504e2fd50e4e70756e7c035d2b60160efd46.json | Remove redundant registrations
These are already handled in `buildOwner()` | packages/ember-glimmer/tests/utils/helpers.js | @@ -8,9 +8,7 @@ export {
Helper,
helper,
Component,
- TextArea,
LinkComponent,
- TextField,
InteractiveRender,
InertRenderer,
htmlSafe, | true |
Other | emberjs | ember.js | 27204b0188e20ea9f7c9825376e9d2c587737adf.json | Update CHANGELOG for 2.18.0-beta.3
[ci skip]
(cherry picked from commit 7a5e3a8de8f95b7a9bd01ebb49059f7b2298257f) | CHANGELOG.md | @@ -1,5 +1,11 @@
# Ember Changelog
+### 2.18.0-beta.3 (December 12, 2017)
+
+- [#15924](https://github.com/emberjs/ember.js/pull/15924) / [#15940](https://github.com/emberjs/ember.js/pull/15940) [BUGFIX] Assert that `classNameBinding` items are non-empty strings
+- [#15927](https://github.com/emberjs/ember.js/pull/1... | false |
Other | emberjs | ember.js | 4c235ae09445fe76f430dcbaf3f86cf9339d38d1.json | remove binding param in `changeProperties` | packages/ember-metal/lib/property_events.js | @@ -235,13 +235,12 @@ function endPropertyChanges() {
@method changeProperties
@param {Function} callback
- @param [binding]
@private
*/
-function changeProperties(callback, binding) {
+function changeProperties(callback) {
beginPropertyChanges();
try {
- callback.call(binding);
+ callback();
... | false |
Other | emberjs | ember.js | 8f8709a8f58cdf40a6f2c61542da9524ee21ce5e.json | use lookup instead of create | blueprints/controller-test/qunit-rfc-232-files/tests/unit/__path__/__test__.js | @@ -6,7 +6,7 @@ module('<%= friendlyTestDescription %>', function(hooks) {
// Replace this with your real tests.
test('it exists', function(assert) {
- let controller = this.owner.factoryFor('controller:<%= controllerPathName %>').create();
+ let controller = this.owner.lookup('controller:<%= controllerPa... | true |
Other | emberjs | ember.js | 8f8709a8f58cdf40a6f2c61542da9524ee21ce5e.json | use lookup instead of create | node-tests/fixtures/controller-test/rfc232.js | @@ -6,7 +6,7 @@ module('Unit | Controller | foo', function(hooks) {
// Replace this with your real tests.
test('it exists', function(assert) {
- let controller = this.owner.factoryFor('controller:foo').create();
+ let controller = this.owner.lookup('controller:foo');
assert.ok(controller);
});
})... | true |
Other | emberjs | ember.js | afa52d11bcebe84976d0402a189440d7a92bf84e.json | blueprints/util-test: Add RFC232 variants | blueprints/util-test/qunit-rfc-232-files/tests/unit/utils/__name__-test.js | @@ -0,0 +1,13 @@
+import <%= camelizedModuleName %> from '<%= dasherizedModulePrefix %>/utils/<%= dasherizedModuleName %>';
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('<%= friendlyTestName %>', function(hooks) {
+ setupTest(hooks);
+
+ // Replace this with your real tes... | true |
Other | emberjs | ember.js | afa52d11bcebe84976d0402a189440d7a92bf84e.json | blueprints/util-test: Add RFC232 variants | node-tests/blueprints/util-test-test.js | @@ -9,6 +9,7 @@ const modifyPackages = blueprintHelpers.modifyPackages;
const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
+const generateFakePackageManifest = require('../helpers/generate-fake-package-manifest');
const fixture = require('../helpers/fixture');
describe('B... | true |
Other | emberjs | ember.js | afa52d11bcebe84976d0402a189440d7a92bf84e.json | blueprints/util-test: Add RFC232 variants | node-tests/fixtures/util-test/rfc232.js | @@ -0,0 +1,13 @@
+import fooBar from 'my-app/utils/foo-bar';
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Utility | foo bar', function(hooks) {
+ setupTest(hooks);
+
+ // Replace this with your real tests.
+ test('it works', function(assert) {
+ let result = f... | true |
Other | emberjs | ember.js | 81568674fdbfdf26221708b94c08340f97279c9a.json | blueprints/instance-initializer-test: Add RFC232 variants | blueprints/instance-initializer-test/qunit-rfc-232-files/tests/unit/instance-initializers/__name__-test.js | @@ -0,0 +1,29 @@
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+
+import { initialize } from '<%= dasherizedModulePrefix %>/initializers/<%= dasherizedModuleName %>';
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+import destroyApp from '../../h... | true |
Other | emberjs | ember.js | 81568674fdbfdf26221708b94c08340f97279c9a.json | blueprints/instance-initializer-test: Add RFC232 variants | node-tests/blueprints/instance-initializer-test-test.js | @@ -9,6 +9,7 @@ const modifyPackages = blueprintHelpers.modifyPackages;
const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
+const generateFakePackageManifest = require('../helpers/generate-fake-package-manifest');
const fixture = require('../helpers/fixture');
describe('B... | true |
Other | emberjs | ember.js | 81568674fdbfdf26221708b94c08340f97279c9a.json | blueprints/instance-initializer-test: Add RFC232 variants | node-tests/fixtures/instance-initializer-test/rfc232.js | @@ -0,0 +1,29 @@
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+
+import { initialize } from 'my-app/initializers/foo';
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+import destroyApp from '../../helpers/destroy-app';
+
+module('Unit | Instance... | true |
Other | emberjs | ember.js | 345ba248495abb105def1722b834882b1fc5e85d.json | blueprints/controller-test: Add RFC232 variants | blueprints/controller-test/index.js | @@ -2,14 +2,18 @@
/* eslint-env node */
+const stringUtil = require('ember-cli-string-utils');
const testInfo = require('ember-cli-test-info');
const useTestFrameworkDetector = require('../test-framework-detector');
module.exports = useTestFrameworkDetector({
description: 'Generates a controller unit tes... | true |
Other | emberjs | ember.js | 345ba248495abb105def1722b834882b1fc5e85d.json | blueprints/controller-test: Add RFC232 variants | blueprints/controller-test/qunit-rfc-232-files/tests/unit/__path__/__test__.js | @@ -0,0 +1,12 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('<%= friendlyTestDescription %>', function(hooks) {
+ setupTest(hooks);
+
+ // Replace this with your real tests.
+ test('it exists', function(assert) {
+ let controller = this.owner.factoryFor('controller:... | true |
Other | emberjs | ember.js | 345ba248495abb105def1722b834882b1fc5e85d.json | blueprints/controller-test: Add RFC232 variants | node-tests/blueprints/controller-test-test.js | @@ -27,6 +27,19 @@ describe('Blueprint: controller-test', function() {
});
});
+ describe('with ember-cli-qunit@4.1.1', function() {
+ beforeEach(function() {
+ generateFakePackageManifest('ember-cli-qunit', '4.1.1');
+ });
+
+ it('controller-test foo', function() {
+ retur... | true |
Other | emberjs | ember.js | 345ba248495abb105def1722b834882b1fc5e85d.json | blueprints/controller-test: Add RFC232 variants | node-tests/fixtures/controller-test/rfc232.js | @@ -0,0 +1,12 @@
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Controller | foo', function(hooks) {
+ setupTest(hooks);
+
+ // Replace this with your real tests.
+ test('it exists', function(assert) {
+ let controller = this.owner.factoryFor('controller:foo').c... | true |
Other | emberjs | ember.js | 4fc1370b6eec39a0dd3b98ca1bb3e002b061500a.json | blueprints/initializer-test: Add RFC232 variants | blueprints/initializer-test/qunit-rfc-232-files/tests/unit/initializers/__name__-test.js | @@ -0,0 +1,29 @@
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+
+import { initialize } from '<%= dasherizedModulePrefix %>/initializers/<%= dasherizedModuleName %>';
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+import destroyApp from '../../h... | true |
Other | emberjs | ember.js | 4fc1370b6eec39a0dd3b98ca1bb3e002b061500a.json | blueprints/initializer-test: Add RFC232 variants | node-tests/blueprints/initializer-test-test.js | @@ -9,6 +9,7 @@ const modifyPackages = blueprintHelpers.modifyPackages;
const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
+const generateFakePackageManifest = require('../helpers/generate-fake-package-manifest');
const fixture = require('../helpers/fixture');
describe('B... | true |
Other | emberjs | ember.js | 4fc1370b6eec39a0dd3b98ca1bb3e002b061500a.json | blueprints/initializer-test: Add RFC232 variants | node-tests/fixtures/initializer-test/rfc232.js | @@ -0,0 +1,29 @@
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+
+import { initialize } from 'my-app/initializers/foo';
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+import destroyApp from '../../helpers/destroy-app';
+
+module('Unit | Initiali... | true |
Other | emberjs | ember.js | 308fec5ce8ed29bf85cd390966d02a4c834a9937.json | remove leftovers from leveraging native `WeakMap`s | packages/ember-metal/lib/index.js | @@ -23,7 +23,6 @@ export {
getDispatchOverride
} from './error_handler';
export {
- META_DESC,
meta,
peekMeta,
deleteMeta | true |
Other | emberjs | ember.js | 308fec5ce8ed29bf85cd390966d02a4c834a9937.json | remove leftovers from leveraging native `WeakMap`s | packages/ember-metal/lib/meta.js | @@ -411,18 +411,6 @@ for (let name in listenerMethods) {
Meta.prototype[name] = listenerMethods[name];
}
-export const META_DESC = {
- writable: true,
- configurable: true,
- enumerable: false,
- value: null
-};
-
-const EMBER_META_PROPERTY = {
- name: META_FIELD,
- descriptor: META_DESC
-};
-
if (MANDATOR... | true |
Other | emberjs | ember.js | 308fec5ce8ed29bf85cd390966d02a4c834a9937.json | remove leftovers from leveraging native `WeakMap`s | packages/ember/lib/index.js | @@ -68,7 +68,6 @@ Ember.Instrumentation = {
};
Ember.Error = EmberDebug.Error;
-Ember.META_DESC = metal.META_DESC;
Ember.meta = metal.meta;
Ember.get = metal.get;
Ember.getWithDefault = metal.getWithDefault; | true |
Other | emberjs | ember.js | 308fec5ce8ed29bf85cd390966d02a4c834a9937.json | remove leftovers from leveraging native `WeakMap`s | packages/ember/tests/reexports_test.js | @@ -53,7 +53,6 @@ QUnit.module('ember reexports');
['FEATURES', 'ember/features'],
['FEATURES.isEnabled', 'ember-debug', 'isFeatureEnabled'],
['Error', 'ember-debug'],
- ['META_DESC', 'ember-metal'],
['meta', 'ember-metal'],
['get', 'ember-metal'],
['set', 'ember-metal'], | true |
Other | emberjs | ember.js | cd6b8d423790b27170a7ef31b92cddcb3141b292.json | blueprints/helper-test: Add RFC232 variants | blueprints/helper-test/qunit-rfc-232-files/tests/__testType__/helpers/__name__-test.js | @@ -0,0 +1,29 @@
+<% if (testType === 'integration') { %>import { module, test } from 'qunit';
+import { setupRenderingTest } from 'ember-qunit';
+import { render } from '@ember/test-helpers';
+import hbs from 'htmlbars-inline-precompile';
+
+module('<%= friendlyTestName %>', function(hooks) {
+ setupRenderingTest(hoo... | true |
Other | emberjs | ember.js | cd6b8d423790b27170a7ef31b92cddcb3141b292.json | blueprints/helper-test: Add RFC232 variants | node-tests/blueprints/helper-test-test.js | @@ -34,6 +34,26 @@ describe('Blueprint: helper-test', function() {
});
});
+ describe('with ember-cli-qunit@4.1.1', function() {
+ beforeEach(function() {
+ generateFakePackageManifest('ember-cli-qunit', '4.1.1');
+ });
+
+ it('helper-test foo/bar-baz', function() {
+ retur... | true |
Other | emberjs | ember.js | cd6b8d423790b27170a7ef31b92cddcb3141b292.json | blueprints/helper-test: Add RFC232 variants | node-tests/fixtures/helper-test/rfc232-unit.js | @@ -0,0 +1,13 @@
+import { fooBarBaz } from 'my-app/helpers/foo/bar-baz';
+import { module, test } from 'qunit';
+import { setupTest } from 'ember-qunit';
+
+module('Unit | Helper | foo/bar baz', function(hooks) {
+ setupTest(hooks);
+
+ // Replace this with your real tests.
+ test('it works', function(assert) {
+ ... | true |
Other | emberjs | ember.js | cd6b8d423790b27170a7ef31b92cddcb3141b292.json | blueprints/helper-test: Add RFC232 variants | node-tests/fixtures/helper-test/rfc232.js | @@ -0,0 +1,17 @@
+import { module, test } from 'qunit';
+import { setupRenderingTest } from 'ember-qunit';
+import { render } from '@ember/test-helpers';
+import hbs from 'htmlbars-inline-precompile';
+
+module('Integration | Helper | foo/bar baz', function(hooks) {
+ setupRenderingTest(hooks);
+
+ // Replace this wi... | true |
Other | emberjs | ember.js | e8e4593bc06ac92081a1c68cafb14f5debbf4544.json | tests/blueprints/util-test: Use fixture files | node-tests/blueprints/util-test-test.js | @@ -9,6 +9,8 @@ const modifyPackages = blueprintHelpers.modifyPackages;
const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
+const fixture = require('../helpers/fixture');
+
describe('Blueprint: util-test', function() {
setupTestHooks(this);
@@ -20,7 +22,7 @@ describe('B... | true |
Other | emberjs | ember.js | e8e4593bc06ac92081a1c68cafb14f5debbf4544.json | tests/blueprints/util-test: Use fixture files | node-tests/fixtures/util-test/default.js | @@ -0,0 +1,10 @@
+import fooBar from 'my-app/utils/foo-bar';
+import { module, test } from 'qunit';
+
+module('Unit | Utility | foo bar');
+
+// Replace this with your real tests.
+test('it works', function(assert) {
+ let result = fooBar();
+ assert.ok(result);
+}); | true |
Other | emberjs | ember.js | e8e4593bc06ac92081a1c68cafb14f5debbf4544.json | tests/blueprints/util-test: Use fixture files | node-tests/fixtures/util-test/dummy.js | @@ -0,0 +1,10 @@
+import fooBar from 'dummy/utils/foo-bar';
+import { module, test } from 'qunit';
+
+module('Unit | Utility | foo bar');
+
+// Replace this with your real tests.
+test('it works', function(assert) {
+ let result = fooBar();
+ assert.ok(result);
+}); | true |
Other | emberjs | ember.js | e8e4593bc06ac92081a1c68cafb14f5debbf4544.json | tests/blueprints/util-test: Use fixture files | node-tests/fixtures/util-test/mocha.js | @@ -0,0 +1,11 @@
+import { expect } from 'chai';
+import { describe, it } from 'mocha';
+import fooBar from 'my-app/utils/foo-bar';
+
+describe('Unit | Utility | foo bar', function() {
+ // Replace this with your real tests.
+ it('works', function() {
+ let result = fooBar();
+ expect(result).to.be.ok;
+ });
+... | true |
Other | emberjs | ember.js | ad9fbf96b2226c8d2598c137060a368bd75f0f55.json | tests/blueprints/service-test: Use fixture files | node-tests/blueprints/service-test-test.js | @@ -10,6 +10,7 @@ const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
const generateFakePackageManifest = require('../helpers/generate-fake-package-manifest');
+const fixture = require('../helpers/fixture');
describe('Blueprint: service-test', function() {
setupTestHooks... | true |
Other | emberjs | ember.js | ad9fbf96b2226c8d2598c137060a368bd75f0f55.json | tests/blueprints/service-test: Use fixture files | node-tests/fixtures/service-test/default.js | @@ -0,0 +1,12 @@
+import { moduleFor, test } from 'ember-qunit';
+
+moduleFor('service:foo', 'Unit | Service | foo', {
+ // Specify the other units that are required for this test.
+ // needs: ['service:foo']
+});
+
+// Replace this with your real tests.
+test('it exists', function(assert) {
+ let service = this.sub... | true |
Other | emberjs | ember.js | ad9fbf96b2226c8d2598c137060a368bd75f0f55.json | tests/blueprints/service-test: Use fixture files | node-tests/fixtures/service-test/mocha-0.12.js | @@ -0,0 +1,16 @@
+import { expect } from 'chai';
+import { describe, it } from 'mocha';
+import { setupTest } from 'ember-mocha';
+
+describe('Unit | Service | foo', function() {
+ setupTest('service:foo', {
+ // Specify the other units that are required for this test.
+ // needs: ['service:foo']
+ });
+
+ // ... | true |
Other | emberjs | ember.js | ad9fbf96b2226c8d2598c137060a368bd75f0f55.json | tests/blueprints/service-test: Use fixture files | node-tests/fixtures/service-test/mocha.js | @@ -0,0 +1,16 @@
+import { expect } from 'chai';
+import { describeModule, it } from 'ember-mocha';
+
+describeModule('service:foo', 'Unit | Service | foo',
+ {
+ // Specify the other units that are required for this test.
+ // needs: ['service:foo']
+ },
+ function() {
+ // Replace this with your real test... | true |
Other | emberjs | ember.js | 6fb0e24adddb2c00e6d5a7efd2fb97fac2c34e2f.json | tests/blueprints/route-test: Use fixture files | node-tests/blueprints/route-test-test.js | @@ -10,6 +10,7 @@ const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
const generateFakePackageManifest = require('../helpers/generate-fake-package-manifest');
+const fixture = require('../helpers/fixture');
describe('Blueprint: route-test', function() {
setupTestHooks(t... | true |
Other | emberjs | ember.js | 6fb0e24adddb2c00e6d5a7efd2fb97fac2c34e2f.json | tests/blueprints/route-test: Use fixture files | node-tests/fixtures/route-test/default.js | @@ -0,0 +1,11 @@
+import { moduleFor, test } from 'ember-qunit';
+
+moduleFor('route:foo', 'Unit | Route | foo', {
+ // Specify the other units that are required for this test.
+ // needs: ['controller:foo']
+});
+
+test('it exists', function(assert) {
+ let route = this.subject();
+ assert.ok(route);
+}); | true |
Other | emberjs | ember.js | 6fb0e24adddb2c00e6d5a7efd2fb97fac2c34e2f.json | tests/blueprints/route-test: Use fixture files | node-tests/fixtures/route-test/mocha-0.12.js | @@ -0,0 +1,15 @@
+import { expect } from 'chai';
+import { describe, it } from 'mocha';
+import { setupTest } from 'ember-mocha';
+
+describe('Unit | Route | foo', function() {
+ setupTest('route:foo', {
+ // Specify the other units that are required for this test.
+ // needs: ['controller:foo']
+ });
+
+ it('... | true |
Other | emberjs | ember.js | 6fb0e24adddb2c00e6d5a7efd2fb97fac2c34e2f.json | tests/blueprints/route-test: Use fixture files | node-tests/fixtures/route-test/mocha.js | @@ -0,0 +1,15 @@
+import { expect } from 'chai';
+import { describeModule, it } from 'ember-mocha';
+
+describeModule('route:foo', 'Unit | Route | foo',
+ {
+ // Specify the other units that are required for this test.
+ // needs: ['controller:foo']
+ },
+ function() {
+ it('exists', function() {
+ let... | true |
Other | emberjs | ember.js | 259e939518f7ba04215c97af50bda06b8d0fe6d6.json | tests/blueprints/mixin-test: Use fixture files | node-tests/blueprints/mixin-test-test.js | @@ -9,6 +9,8 @@ const modifyPackages = blueprintHelpers.modifyPackages;
const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
+const fixture = require('../helpers/fixture');
+
describe('Blueprint: mixin-test', function() {
setupTestHooks(this);
@@ -20,7 +22,7 @@ describe('... | true |
Other | emberjs | ember.js | 259e939518f7ba04215c97af50bda06b8d0fe6d6.json | tests/blueprints/mixin-test: Use fixture files | node-tests/fixtures/mixin-test/addon.js | @@ -0,0 +1,12 @@
+import EmberObject from '@ember/object';
+import FooMixin from 'my-addon/mixins/foo';
+import { module, test } from 'qunit';
+
+module('Unit | Mixin | foo');
+
+// Replace this with your real tests.
+test('it works', function(assert) {
+ let FooObject = EmberObject.extend(FooMixin);
+ let subject = ... | true |
Other | emberjs | ember.js | 259e939518f7ba04215c97af50bda06b8d0fe6d6.json | tests/blueprints/mixin-test: Use fixture files | node-tests/fixtures/mixin-test/default.js | @@ -0,0 +1,12 @@
+import EmberObject from '@ember/object';
+import FooMixin from 'my-app/mixins/foo';
+import { module, test } from 'qunit';
+
+module('Unit | Mixin | foo');
+
+// Replace this with your real tests.
+test('it works', function(assert) {
+ let FooObject = EmberObject.extend(FooMixin);
+ let subject = Fo... | true |
Other | emberjs | ember.js | 259e939518f7ba04215c97af50bda06b8d0fe6d6.json | tests/blueprints/mixin-test: Use fixture files | node-tests/fixtures/mixin-test/mocha.js | @@ -0,0 +1,13 @@
+import { expect } from 'chai';
+import { describe, it } from 'mocha';
+import EmberObject from '@ember/object';
+import FooMixin from 'my-app/mixins/foo';
+
+describe('Unit | Mixin | foo', function() {
+ // Replace this with your real tests.
+ it('works', function() {
+ let FooObject = EmberObjec... | true |
Other | emberjs | ember.js | 22a9e7f50f0c909aee8175d9cb7d04ea2c47bdbc.json | tests/blueprints/instance-initializer-test: Use fixture files | node-tests/blueprints/instance-initializer-test-test.js | @@ -9,6 +9,8 @@ const modifyPackages = blueprintHelpers.modifyPackages;
const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
+const fixture = require('../helpers/fixture');
+
describe('Blueprint: instance-initializer-test', function() {
setupTestHooks(this);
@@ -20,11 +22... | true |
Other | emberjs | ember.js | 22a9e7f50f0c909aee8175d9cb7d04ea2c47bdbc.json | tests/blueprints/instance-initializer-test: Use fixture files | node-tests/fixtures/instance-initializer-test/default.js | @@ -0,0 +1,26 @@
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+import { initialize } from 'my-app/instance-initializers/foo';
+import { module, test } from 'qunit';
+import destroyApp from '../../helpers/destroy-app';
+
+module('Unit | Instance Initializer | foo', {
+ beforeEac... | true |
Other | emberjs | ember.js | 22a9e7f50f0c909aee8175d9cb7d04ea2c47bdbc.json | tests/blueprints/instance-initializer-test: Use fixture files | node-tests/fixtures/instance-initializer-test/dummy.js | @@ -0,0 +1,26 @@
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+import { initialize } from 'dummy/instance-initializers/foo';
+import { module, test } from 'qunit';
+import destroyApp from '../../helpers/destroy-app';
+
+module('Unit | Instance Initializer | foo', {
+ beforeEach... | true |
Other | emberjs | ember.js | 22a9e7f50f0c909aee8175d9cb7d04ea2c47bdbc.json | tests/blueprints/instance-initializer-test: Use fixture files | node-tests/fixtures/instance-initializer-test/mocha.js | @@ -0,0 +1,30 @@
+import { expect } from 'chai';
+import { describe, it, beforeEach } from 'mocha';
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+import { initialize } from 'my-app/instance-initializers/foo';
+import destroyApp from '../../helpers/destroy-app';
+
+describe('Unit... | true |
Other | emberjs | ember.js | 61040db1f6d0591e4da35d160d885a0b418c4ead.json | tests/blueprints/initializer-test: Use fixture files | node-tests/blueprints/initializer-test-test.js | @@ -9,6 +9,8 @@ const modifyPackages = blueprintHelpers.modifyPackages;
const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
+const fixture = require('../helpers/fixture');
+
describe('Blueprint: initializer-test', function() {
setupTestHooks(this);
@@ -20,10 +22,7 @@ des... | true |
Other | emberjs | ember.js | 61040db1f6d0591e4da35d160d885a0b418c4ead.json | tests/blueprints/initializer-test: Use fixture files | node-tests/fixtures/initializer-test/default.js | @@ -0,0 +1,26 @@
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+
+import { initialize } from 'my-app/initializers/foo';
+import { module, test } from 'qunit';
+import destroyApp from '../../helpers/destroy-app';
+
+module('Unit | Initializer | foo', {
+ beforeEach() {
+ run((... | true |
Other | emberjs | ember.js | 61040db1f6d0591e4da35d160d885a0b418c4ead.json | tests/blueprints/initializer-test: Use fixture files | node-tests/fixtures/initializer-test/dummy.js | @@ -0,0 +1,26 @@
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+
+import { initialize } from 'dummy/initializers/foo';
+import { module, test } from 'qunit';
+import destroyApp from '../../helpers/destroy-app';
+
+module('Unit | Initializer | foo', {
+ beforeEach() {
+ run(()... | true |
Other | emberjs | ember.js | 61040db1f6d0591e4da35d160d885a0b418c4ead.json | tests/blueprints/initializer-test: Use fixture files | node-tests/fixtures/initializer-test/mocha.js | @@ -0,0 +1,29 @@
+import { expect } from 'chai';
+import { describe, it, beforeEach, afterEach } from 'mocha';
+import { run } from '@ember/runloop';
+import Application from '@ember/application';
+import { initialize } from 'my-app/initializers/foo';
+import destroyApp from '../../helpers/destroy-app';
+
+describe('Un... | true |
Other | emberjs | ember.js | e1c25c959c10f716e9ccbaeef4a8e1eaaa509f4e.json | tests/blueprints/helper-test: Use fixture files | node-tests/blueprints/helper-test-test.js | @@ -46,8 +46,7 @@ describe('Blueprint: helper-test', function() {
it('helper-test foo/bar-baz --integration', function() {
return emberGenerateDestroy(['helper-test', 'foo/bar-baz', '--integration'], _file => {
expect(_file('tests/integration/helpers/foo/bar-baz-test.js'))
- .to.co... | true |
Other | emberjs | ember.js | e1c25c959c10f716e9ccbaeef4a8e1eaaa509f4e.json | tests/blueprints/helper-test: Use fixture files | node-tests/fixtures/helper-test/mocha-0.12.js | @@ -0,0 +1,27 @@
+import { expect } from 'chai';
+import { describe, it } from 'mocha';
+import { setupComponentTest } from 'ember-mocha';
+import hbs from 'htmlbars-inline-precompile';
+
+describe('Integration | Helper | foo/bar baz', function() {
+ setupComponentTest('foo/bar-baz', {
+ integration: true
+ });
+
... | true |
Other | emberjs | ember.js | e1c25c959c10f716e9ccbaeef4a8e1eaaa509f4e.json | tests/blueprints/helper-test: Use fixture files | node-tests/fixtures/helper-test/mocha.js | @@ -0,0 +1,28 @@
+import { expect } from 'chai';
+
+import { describeComponent, it } from 'ember-mocha';
+import hbs from 'htmlbars-inline-precompile';
+
+describeComponent('foo/bar-baz', 'helper:foo/bar-baz',
+ {
+ integration: true
+ },
+ function() {
+ it('renders', function() {
+ // Set any properties... | true |
Other | emberjs | ember.js | d73a1c0b7c5b6ad4c339ebca145ad3ce850973e7.json | tests/blueprints/controller-test: Use fixture files | node-tests/blueprints/controller-test-test.js | @@ -10,6 +10,7 @@ const chai = require('ember-cli-blueprint-test-helpers/chai');
const expect = chai.expect;
const generateFakePackageManifest = require('../helpers/generate-fake-package-manifest');
+const fixture = require('../helpers/fixture');
describe('Blueprint: controller-test', function() {
setupTestHo... | true |
Other | emberjs | ember.js | d73a1c0b7c5b6ad4c339ebca145ad3ce850973e7.json | tests/blueprints/controller-test: Use fixture files | node-tests/fixtures/controller-test/default.js | @@ -0,0 +1,12 @@
+import { moduleFor, test } from 'ember-qunit';
+
+moduleFor('controller:foo', 'Unit | Controller | foo', {
+ // Specify the other units that are required for this test.
+ // needs: ['controller:foo']
+});
+
+// Replace this with your real tests.
+test('it exists', function(assert) {
+ let controlle... | true |
Other | emberjs | ember.js | d73a1c0b7c5b6ad4c339ebca145ad3ce850973e7.json | tests/blueprints/controller-test: Use fixture files | node-tests/fixtures/controller-test/mocha-0.12.js | @@ -0,0 +1,16 @@
+import { expect } from 'chai';
+import { describe, it } from 'mocha';
+import { setupTest } from 'ember-mocha';
+
+describe('Unit | Controller | foo', function() {
+ setupTest('controller:foo', {
+ // Specify the other units that are required for this test.
+ // needs: ['controller:foo']
+ });... | true |
Other | emberjs | ember.js | d73a1c0b7c5b6ad4c339ebca145ad3ce850973e7.json | tests/blueprints/controller-test: Use fixture files | node-tests/fixtures/controller-test/mocha.js | @@ -0,0 +1,16 @@
+import { expect } from 'chai';
+import { describeModule, it } from 'ember-mocha';
+
+describeModule('controller:foo', 'Unit | Controller | foo',
+ {
+ // Specify the other units that are required for this test.
+ // needs: ['controller:foo']
+ },
+ function() {
+ // Replace this with your ... | true |
Other | emberjs | ember.js | 1ce7a9d14864607f3fdddede59a40c81231d7874.json | tests/blueprints/component-test: Use fixture files | node-tests/blueprints/component-test-test.js | @@ -47,12 +47,7 @@ describe('Blueprint: component-test', function() {
it('component-test x-foo', function() {
return emberGenerateDestroy(['component-test', 'x-foo'], _file => {
expect(_file('tests/integration/components/x-foo/component-test.js'))
- .to.contain("import { moduleForC... | false |
Other | emberjs | ember.js | 1d07a7640eee47b03479c954b5f409fe0d0553d7.json | tests/fixtures: Add editorconfig overrides | node-tests/fixtures/.editorconfig | @@ -0,0 +1,5 @@
+# http://editorconfig.org
+
+[*]
+trim_trailing_whitespace = false
+insert_final_newline = false | false |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/acceptance-test-test.js | @@ -12,22 +12,54 @@ const expect = chai.expect;
describe('Blueprint: acceptance-test', function() {
setupTestHooks(this);
- it('acceptance-test foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['acceptance-test', 'foo'], _file => {
+ describe('in app', function() {
+ beforeEa... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/component-addon-test.js | @@ -11,11 +11,16 @@ const expect = chai.expect;
describe('Blueprint: component-addon', function() {
setupTestHooks(this);
- it('component-addon foo-bar', function() {
- return emberNew({ target: 'addon' })
- .then(() => emberGenerateDestroy(['component-addon', 'foo-bar'], _file => {
+ describe('in addon... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/component-test.js | @@ -18,9 +18,13 @@ const fixture = require('../helpers/file');
describe('Blueprint: component', function() {
setupTestHooks(this);
- it('component x-foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['component', 'x-foo'], _file => {
+ describe('in app', function() {
+ beforeE... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/controller-test.js | @@ -15,35 +15,143 @@ const generateFakePackageManifest = require('../helpers/generate-fake-package-ma
describe('Blueprint: controller', function() {
setupTestHooks(this);
- it('controller foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['controller', 'foo'], _file => {
+ descri... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/helper-addon-test.js | @@ -13,11 +13,16 @@ const file = require('../helpers/file');
describe('Blueprint: helper-addon', function() {
setupTestHooks(this);
- it('in-addon helper-addon foo/bar-baz', function() {
- return emberNew({ target: 'addon' })
- .then(() => emberGenerateDestroy(['helper-addon', 'foo/bar-baz'], _file => {
... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/helper-test.js | @@ -16,194 +16,193 @@ const file = require('../helpers/file');
describe('Blueprint: helper', function() {
setupTestHooks(this);
- it('helper foo/bar-baz', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['helper', 'foo/bar-baz'], _file => {
+ describe('in app', function() {
+ befo... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/initializer-addon-test.js | @@ -11,11 +11,16 @@ const expect = chai.expect;
describe('Blueprint: initializer-addon', function() {
setupTestHooks(this);
- it('initializer-addon foo', function() {
- return emberNew({ target: 'addon' })
- .then(() => emberGenerateDestroy(['initializer-addon', 'foo'], _file => {
+ describe('in addon',... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/initializer-test.js | @@ -13,9 +13,13 @@ const expect = chai.expect;
describe('Blueprint: initializer', function() {
setupTestHooks(this);
- it('initializer foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['initializer', 'foo'], _file => {
+ describe('in app', function() {
+ beforeEach(function()... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/instance-initializer-addon-test.js | @@ -11,11 +11,16 @@ const expect = chai.expect;
describe('Blueprint: instance-initializer-addon', function() {
setupTestHooks(this);
- it('instance-initializer-addon foo', function() {
- return emberNew({ target: 'addon' })
- .then(() => emberGenerateDestroy(['instance-initializer-addon', 'foo'], _file =... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/instance-initializer-test.js | @@ -13,9 +13,14 @@ const expect = chai.expect;
describe('Blueprint: instance-initializer', function() {
setupTestHooks(this);
- it('instance-initializer foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['instance-initializer', 'foo'], _file => {
+
+ describe('in app', function()... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/mixin-test.js | @@ -13,41 +13,131 @@ const expect = chai.expect;
describe('Blueprint: mixin', function() {
setupTestHooks(this);
- it('mixin foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['mixin', 'foo'], _file => {
+
+ describe('in app', function() {
+ beforeEach(function() {
+ retu... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/route-addon-test.js | @@ -11,13 +11,19 @@ const expect = chai.expect;
describe('Blueprint: route-addon', function() {
setupTestHooks(this);
- it('route-addon foo', function() {
- return emberNew({ target: 'addon' }).then(() => emberGenerateDestroy(['route-addon', 'foo'], _file => {
- expect(_file('app/routes/foo.js'))
- ... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/route-test.js | @@ -20,41 +20,46 @@ const generateFakePackageManifest = require('../helpers/generate-fake-package-ma
describe('Blueprint: route', function() {
setupTestHooks(this);
- it('route foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['route', 'foo'], (_file) => {
- expect(_file('... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/service-test.js | @@ -15,195 +15,198 @@ const generateFakePackageManifest = require('../helpers/generate-fake-package-ma
describe('Blueprint: service', function() {
setupTestHooks(this);
- it('service foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['service', 'foo'], _file => {
+ describe('in a... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/template-test.js | @@ -12,101 +12,108 @@ const expect = chai.expect;
describe('Blueprint: template', function() {
setupTestHooks(this);
- it('template foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['template', 'foo'], _file => {
+ describe('in app', function() {
+ beforeEach(function() {
+ ... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/test-helper-test.js | @@ -11,12 +11,17 @@ const expect = chai.expect;
describe('Blueprint: test-helper', function() {
setupTestHooks(this);
- it('test-helper foo', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['test-helper', 'foo'], _file => {
+ describe('in app', function() {
+ beforeEach(function(... | true |
Other | emberjs | ember.js | 304f6c16fb5784f14a3d8fd8a394c778af938088.json | tests/blueprints: Use describe() blocks to setup preconditions | node-tests/blueprints/util-test.js | @@ -13,131 +13,143 @@ const expect = chai.expect;
describe('Blueprint: util', function() {
setupTestHooks(this);
- it('util foo-bar', function() {
- return emberNew()
- .then(() => emberGenerateDestroy(['util', 'foo-bar'], _file => {
+ describe('in app', function() {
+ beforeEach(function() {
+ ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.