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 | d904e7042d6e02725aec3ede207efcb980512ab6.json | tests/glimmer: Remove unnecessary import aliases | packages/@ember/-internals/glimmer/tests/utils/test-case.js | @@ -1,6 +1,6 @@
export {
- AbstractTestCase as TestCase,
- ApplicationTestCase as ApplicationTest,
- RenderingTestCase as RenderingTest,
+ AbstractTestCase,
+ ApplicationTestCase,
+ RenderingTestCase,
moduleFor,
} from 'internal-test-helpers'; | true |
Other | emberjs | ember.js | b27e6cb67c546fc4fb9929420a764e7775367492.json | internal-test-helpers: Remove unused `HooksCompat` class | packages/internal-test-helpers/lib/ember-dev/hooks-compat.ts | @@ -1,44 +0,0 @@
-export type HookFunction = (assert: Assert) => any;
-
-/**
- * This class can be used to make `setupTest(hooks)` style functions
- * compatible with the non-nested QUnit API.
- */
-export default class HooksCompat {
- _before: HookFunction[] = [];
- _beforeEach: HookFunction[] = [];
- _afterEach: H... | false |
Other | emberjs | ember.js | ba01da35cb5ebb3623f48a3457fb743f9a7f464f.json | internal-test-helpers: Simplify `setupQUnit()` function | packages/internal-test-helpers/lib/ember-dev/setup-qunit.ts | @@ -3,7 +3,6 @@ import { getDebugFunction, setDebugFunction } from '@ember/debug';
import { setupAssertionHelpers } from './assertion';
import { setupContainersCheck } from './containers';
import { setupDeprecationHelpers } from './deprecation';
-import HooksCompat from './hooks-compat';
import { setupNamespacesChe... | false |
Other | emberjs | ember.js | 0d8e395974a7db430c9dbe74ebac8792d1bd67be.json | internal-test-helpers: Use nested module API | packages/internal-test-helpers/lib/module-for.js | @@ -4,16 +4,16 @@ import getAllPropertyNames from './get-all-property-names';
import { all } from 'rsvp';
export default function moduleFor(description, TestClass, ...mixins) {
- QUnit.module(description, {
- beforeEach: function(assert) {
+ QUnit.module(description, function(hooks) {
+ hooks.beforeEach(fun... | false |
Other | emberjs | ember.js | b8c70bd977247fcf0ebaa5df4c76ce4646442cc9.json | internal-test-helpers: Remove obsolete promise filtering | packages/internal-test-helpers/lib/module-for.js | @@ -24,19 +24,7 @@ export default function moduleFor(description, TestClass, ...mixins) {
promises.push(instance.afterEach());
}
- // this seems odd, but actually saves significant time
- // in the test suite
- //
- // returning a promise from a QUnit test always adds a 13ms
- ... | false |
Other | emberjs | ember.js | 00049b9863f5558a99e663432a27e4d4ffb43d14.json | tests/node: Use nested module API | tests/node/template-compiler-test.js | @@ -8,42 +8,42 @@ var test = QUnit.test;
var templateCompiler;
-module('ember-template-compiler.js', {
- beforeEach: function() {
+module('ember-template-compiler.js', function(hooks) {
+ hooks.beforeEach(function() {
templateCompiler = require(templateCompilerPath);
- },
+ });
- afterEach: function() ... | false |
Other | emberjs | ember.js | cf2ae90919218d505ae983a7727b284b56e98951.json | add buildRouteInfoMetadata docs | packages/@ember/-internals/routing/lib/system/route-info.ts | @@ -65,6 +65,14 @@
@public
*/
+/**
+ Will contain the result `Route#buildRouteInfoMetadata`
+ for the corresponding Route.
+ @property {Any} metadata
+ @category ember-routing-build-routeinfo-metadata
+ @public
+*/
+
/**
A reference to the parent route's RouteInfo.
This can be used to traverse upward ... | true |
Other | emberjs | ember.js | cf2ae90919218d505ae983a7727b284b56e98951.json | add buildRouteInfoMetadata docs | packages/@ember/-internals/routing/lib/system/route.ts | @@ -2559,6 +2559,41 @@ if (EMBER_ROUTING_ROUTER_SERVICE && ROUTER_EVENTS) {
if (EMBER_ROUTING_BUILD_ROUTEINFO_METADATA) {
Route.reopen({
+ /**
+ Allows you to produce custom metadata for the route.
+ The return value of this method will be attatched to
+ its corresponding RouteInfoWithAttributes... | true |
Other | emberjs | ember.js | cf2ae90919218d505ae983a7727b284b56e98951.json | add buildRouteInfoMetadata docs | tests/docs/expected.js | @@ -347,6 +347,7 @@ module.exports = {
'merge',
'mergedProperties',
'meta',
+ 'metadata',
'metaForProperty',
'method',
'min', | true |
Other | emberjs | ember.js | 9efdb71ca63b38743e5a0a347173d9bfe2dd4c92.json | yarn.lock: Unify duplicate dependencies | yarn.lock | @@ -754,15 +754,7 @@ abbrev@1:
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==
-accepts@~1.3.4:
- version "1.3.4"
- resolved "https://registry.ya... | false |
Other | emberjs | ember.js | e606eb2034c2005735e40c700972131bc56d251d.json | internal-test-helpers: Remove unused `Assertion` interface | packages/internal-test-helpers/lib/ember-dev/setup-qunit.ts | @@ -10,13 +10,6 @@ import { setupNamespacesCheck } from './namespaces';
// @ts-ignore
import { setupRunLoopCheck } from './run-loop';
-export interface Assertion {
- reset(): void;
- inject(): void;
- assert(): void;
- restore(): void;
-}
-
export default function setupQUnit({ runningProdBuild }: { runningProd... | false |
Other | emberjs | ember.js | dcdff0a6c51a168de226a02c6f3eacbe11a621ad.json | internal-test-helpers: Implement `HooksCompat` class | packages/internal-test-helpers/lib/ember-dev/setup-qunit.ts | @@ -10,6 +10,51 @@ export interface Assertion {
restore(): void;
}
+type HookFunction = (assert: Assert) => any;
+
+/**
+ * This class can be used to make `setupTest(hooks)` style functions
+ * compatible with the non-nested QUnit API.
+ */
+class HooksCompat {
+ _before: HookFunction[] = [];
+ _beforeEach: Hoo... | false |
Other | emberjs | ember.js | 3c16a90fcad985b5229300eab25e3f0f4fecb314.json | ESLint: Remove redundant rule overrides
These are already set by the root config | .eslintrc.js | @@ -93,10 +93,6 @@ module.exports = {
rules: {
'ember-internal/require-yuidoc-access': 'error',
'ember-internal/no-const-outside-module-scope': 'error',
-
- 'no-unused-vars': 'error',
- 'no-throw-literal': 'error',
- 'comma-dangle': 'off',
},
},
{ | false |
Other | emberjs | ember.js | 9a2f9fb33f0df89bcc1147a70155027f5db4eef4.json | ESLint: Adjust globs for TS files | .eslintrc.js | @@ -101,10 +101,10 @@ module.exports = {
},
{
files: [
- 'packages/*/tests/**/*.js',
- 'packages/@ember/*/tests/**/*.js',
- 'packages/@ember/-internals/*/tests/**/*.js',
- 'packages/internal-test-helpers/**/*.js',
+ 'packages/*/tests/**/*.[jt]s',
+ 'packages/@e... | false |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/@ember/-internals/console/index.d.ts | @@ -1,10 +1,10 @@
declare const Logger: {
- log(...args: any[]): void,
- warn(...args: any[]): void,
- error(...args: any[]): void,
- info(...args: any[]): void,
- debug(...args: any[]): void,
- assert(...args: any[]): void,
-}
+ log(...args: any[]): void;
+ warn(...args: any[]): void;
+ error(...args: any[])... | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/@ember/-internals/glimmer/lib/simple-dom.d.ts | @@ -1,4 +1,4 @@
-declare module "simple-dom" {
- import { Simple } from "@glimmer/interfaces";
+declare module 'simple-dom' {
+ import { Simple } from '@glimmer/interfaces';
export interface Document extends Simple.Document {}
} | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/@ember/-internals/metal/lib/mixin.ts | @@ -313,6 +313,7 @@ function followMethodAlias(
let value = values[altKey];
if (desc !== undefined || value !== undefined) {
+ // do nothing
} else if ((possibleDesc = descriptorFor(obj, altKey)) !== undefined) {
desc = possibleDesc;
value = undefined; | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/@ember/-internals/runtime/index.d.ts | @@ -2,10 +2,13 @@ export const TargetActionSupport: any;
export function isArray(arr: any): boolean;
export const ControllerMixin: any;
-export function deprecatingAlias(name: string, opts: {
- id: string;
- until: string;
-}): any;
+export function deprecatingAlias(
+ name: string,
+ opts: {
+ id: string;
+... | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/@ember/application/index.d.ts | @@ -1,2 +1,2 @@
export { getOwner, setOwner } from '@ember/-internals/owner';
-export type EngineInstance = any;
\ No newline at end of file
+export type EngineInstance = any; | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/@ember/controller/lib/controller_mixin.d.ts | @@ -1,4 +1,4 @@
/* @internal */
declare let ControllerMixin: any;
/* @internal */
-export default ControllerMixin;
\ No newline at end of file
+export default ControllerMixin; | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/@ember/object/computed.d.ts | @@ -1,2 +1,2 @@
/* @internal */
-export function readOnly(key: string): any;
\ No newline at end of file
+export function readOnly(key: string): any; | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/@ember/runloop/index.d.ts | @@ -15,4 +15,4 @@ export function getCurrentRunLoop(): boolean;
export function bind(...args: any[]): any;
export function cancel(...args: any[]): any;
export function once(...args: any[]): any;
-export function scheduleOnce(...args: any[]): any;
\ No newline at end of file
+export function scheduleOnce(...args: any... | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/@ember/service/index.d.ts | @@ -1,3 +1,3 @@
export function inject(name?: string): any;
declare let Service: any;
-export default Service;
\ No newline at end of file
+export default Service; | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/internal-test-helpers/index.d.ts | @@ -1 +1 @@
-declare module "internal-test-helpers";
\ No newline at end of file
+declare module 'internal-test-helpers'; | true |
Other | emberjs | ember.js | 0d74c56251da9168a7eb0b3524dedbdac2519262.json | Fix ESLint issues | packages/node-module/index.d.ts | @@ -1,3 +1,3 @@
export const IS_NODE: boolean;
-export function require(url: string): string;
\ No newline at end of file
+export function require(url: string): string; | true |
Other | emberjs | ember.js | fc37d69a9a0e1c89fe0065e6d7d61e17ae68cd86.json | bin/run-tests: Use arrow functions to simplify code | bin/run-tests.js | @@ -54,22 +54,14 @@ function generateTestsFor(packageName) {
return;
}
- testFunctions.push(function() {
- return run('package=' + packageName);
- });
- testFunctions.push(function() {
- return run('package=' + packageName + '&dist=es');
- });
- testFunctions.push(function() {
- return run('pack... | false |
Other | emberjs | ember.js | 356d212190037f66fe40d4b76be8956b26133497.json | Remove obsolete/broken `livereload` option
Ember CLI already injects a livereloader and `livereload.js` is not even available when run via `ember test --server` | tests/index.html | @@ -151,8 +151,6 @@
QUnit.config.urlConfig.push({ id: 'enableoptionalfeatures', label: "Enable Opt Features"});
// Handle extending prototypes
QUnit.config.urlConfig.push({ id: 'extendprototypes', label: 'Extend Prototypes'});
- // Enable/disable livereload
- QUnit.config.urlCon... | false |
Other | emberjs | ember.js | 786ca86cb03f3d5f290faafdcb1016245ce81334.json | testem: Run Firefox in headless mode | testem.travis-browsers.js | @@ -10,4 +10,8 @@ module.exports = {
launch_in_dev: ['Firefox'],
launch_in_ci: ['Firefox'],
reporter: FailureOnlyReporter,
+
+ browser_args: {
+ Firefox: { ci: ['-headless', '--window-size=1440,900'] },
+ },
}; | false |
Other | emberjs | ember.js | 5b3a341d2d53223775d7e09ab11819a5d433290f.json | internal-test-helpers: Convert `RunLoopAssert` to ES6 class | packages/internal-test-helpers/lib/ember-dev/run-loop.js | @@ -1,13 +1,15 @@
import { cancelTimers, end, getCurrentRunLoop, hasScheduledTimers } from '@ember/runloop';
-function RunLoopAssertion(env) {
- this.env = env;
-}
+export default class RunLoopAssertion {
+ constructor(env) {
+ this.env = env;
+ }
+
+ reset() {}
-RunLoopAssertion.prototype = {
- reset: fun... | false |
Other | emberjs | ember.js | 2f57dafa4934fd9097b262f7f986de84584deac3.json | internal-test-helpers: Convert `NamespacesAssert` to ES6 class | packages/internal-test-helpers/lib/ember-dev/namespaces.js | @@ -1,14 +1,16 @@
import { run } from '@ember/runloop';
import { NAMESPACES, NAMESPACES_BY_ID } from '@ember/-internals/metal';
-function NamespacesAssert(env) {
- this.env = env;
-}
+export default class NamespacesAssert {
+ constructor(env) {
+ this.env = env;
+ }
+
+ reset() {}
-NamespacesAssert.prototy... | false |
Other | emberjs | ember.js | 81347ab9bcd6738c4e49576efe3f942755648733.json | internal-test-helpers: Convert `ContainersAssert` to ES6 class | packages/internal-test-helpers/lib/ember-dev/containers.js | @@ -1,15 +1,17 @@
import { Container } from '@ember/-internals/container';
-function ContainersAssert(env) {
- this.env = env;
-}
-
const { _leakTracking: containerLeakTracking } = Container;
-ContainersAssert.prototype = {
- reset: function() {},
- inject: function() {},
- assert: function() {
+export defaul... | false |
Other | emberjs | ember.js | 6f39e168c620ea1babcb50a0e773f9bd337fc6e2.json | QUnit: Remove obsolete issue workaround
Since https://github.com/qunitjs/qunit/pull/1250 was merged this should no longer be needed | tests/index.html | @@ -183,25 +183,7 @@
}
});
- // work around https://github.com/qunitjs/qunit/issues/1224
- QUnit.testStart(function() {
- var existingFixture = document.getElementById('qunit-fixture');
-
- // create a new pristine fixture element
- var newFixture = documen... | false |
Other | emberjs | ember.js | 7cb936d6bdefec2089093edbad4567c64d16c348.json | QUnit: Remove obsolete polyfill
We use a QUnit version now that includes the PR that this polyfill was extracted from. | tests/index.html | @@ -196,9 +196,6 @@
});
QUnit.testDone(function(results) {
- // release the test callback (polyfill for https://github.com/qunitjs/qunit/pull/1279)
- QUnit.config.current.callback = undefined;
-
var oldFixture = document.getElementById('qunit-fixture');
var pa... | false |
Other | emberjs | ember.js | 7784d5b1d56979613e9e7804d04c13271ffc579a.json | Remove obsolete `nolint` option
We don't seem to generate ESLint checks inside of the test suite anymore, so this option is no longer used anywhere. | bin/run-tests.js | @@ -87,7 +87,7 @@ function generateBuiltTests() {
var common = 'skipPackage=container,ember-testing,@ember/debug';
testFunctions.push(function() {
- return run(common + '&nolint=true');
+ return run(common);
});
testFunctions.push(function() {
return run(common + '&dist=min&prod=true');
@@ -99,... | true |
Other | emberjs | ember.js | 7784d5b1d56979613e9e7804d04c13271ffc579a.json | Remove obsolete `nolint` option
We don't seem to generate ESLint checks inside of the test suite anymore, so this option is no longer used anywhere. | tests/index.html | @@ -165,8 +165,7 @@
QUnit.config.urlConfig.push({ id: 'extendprototypes', label: 'Extend Prototypes'});
// Enable/disable livereload
QUnit.config.urlConfig.push({ id: 'livereload', label: 'Live Reload'});
- // Handle ESLint
- QUnit.config.urlConfig.push({ id: 'nolint', label: 'S... | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | bin/run-tests.js | @@ -76,8 +76,7 @@ function generateTestsFor(packageName) {
function generateEachPackageTests() {
fs.readdirSync('packages/@ember').forEach(e => generateTestsFor(`@ember/${e}`));
- fs
- .readdirSync('packages')
+ fs.readdirSync('packages')
.filter(e => e !== '@ember')
.forEach(generateTestsFor);
} | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | broccoli/build-info.js | @@ -80,7 +80,9 @@ function buildFromParts(packageVersion, gitInfo) {
let shortSha = sha.slice(0, 8);
let channel =
branch === 'master'
- ? process.env.BUILD_TYPE === 'alpha' ? 'alpha' : 'canary'
+ ? process.env.BUILD_TYPE === 'alpha'
+ ? 'alpha'
+ : 'canary'
: branch && escapeS... | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | packages/@ember/-internals/glimmer/lib/component-managers/definition-state.ts | @@ -13,4 +13,4 @@ export default interface DefinitionState {
handle: Option<VMHandle>;
symbolTable?: ProgramSymbolTable;
template?: any;
-};
+} | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | packages/@ember/-internals/glimmer/lib/utils/references.ts | @@ -365,7 +365,10 @@ export class SimpleHelperReference extends CachedReference {
}
compute() {
- let { helper, args: { positional, named } } = this;
+ let {
+ helper,
+ args: { positional, named },
+ } = this;
let positionalValue = positional.value();
let namedValue = named.value... | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | packages/@ember/-internals/utils/lib/inspect.ts | @@ -53,7 +53,9 @@ function inspectValue(value: any | null | undefined, depth: number, seen?: WeakS
return value.toString();
case 'function':
return value.toString === functionToString
- ? value.name ? `[Function:${value.name}]` : `[Function]`
+ ? value.name
+ ? `[Function:${val... | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | packages/@ember/application/tests/dependency_injection/default_resolver_test.js | @@ -22,9 +22,9 @@ moduleFor(
}
/*
- * This first batch of tests are integration tests against the public
- * applicationInstance API.
- */
+ * This first batch of tests are integration tests against the public
+ * applicationInstance API.
+ */
[`@test the default resolver looks up t... | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | packages/@ember/application/tests/visit_test.js | @@ -203,18 +203,18 @@ moduleFor(
assert.ok(instanceBooted === 1, 'an instance should be booted');
/*
- * Destroy the instance.
- */
+ * Destroy the instance.
+ */
return this.runTask(() => {
this.applicationInstance.destroy();
... | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | packages/ember-testing/tests/helpers_test.js | @@ -260,7 +260,9 @@ if (!jQueryDisabled) {
registerWaiter(waiter);
registerWaiter(otherWaiter);
- let { application: { testHelpers } } = this;
+ let {
+ application: { testHelpers },
+ } = this;
return testHelpers
.wait()
.then(() => {
@@ ... | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | packages/ember/tests/service_injection_test.js | @@ -204,15 +204,15 @@ if (EMBER_MODULE_UNIFICATION) {
}
/*
- * This test demonstrates a failure in the caching system of ember's
- * container around singletons and and local lookup. The local lookup
- * is cached and the global injection is then looked up incorrectly.
- *
- * The pa... | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | packages/internal-test-helpers/lib/ember-dev/containers.js | @@ -12,7 +12,12 @@ ContainersAssert.prototype = {
assert: function() {
if (containerLeakTracking === undefined) return;
let { config } = QUnit;
- let { testName, testId, module: { name: moduleName }, finish: originalFinish } = config.current;
+ let {
+ testName,
+ testId,
+ module: { n... | true |
Other | emberjs | ember.js | de1faf4a9cba4e1240508bb1999ee1bd66e1d8e5.json | Fix `prettier` issues | tests/node/helpers/setup-app.js | @@ -56,7 +56,7 @@ var SimpleDOM = require('simple-dom');
* return this.renderToHTML('/'photos).then(function(html) {
* assert.ok(html.matches('<h1>Hello world</h1>'));
* });
-*/
+ */
module.exports = function(hooks) {
hooks.beforeEach(function() { | true |
Other | emberjs | ember.js | 60a538c01e141569531c63673a6f9bbdad780a49.json | Add v3.4.7 to CHANGELOG.md. | CHANGELOG.md | @@ -43,6 +43,10 @@
- [#16978](https://github.com/emberjs/ember.js/pull/16978) [BUGFIX] Properly teardown alias
- [#16877](https://github.com/emberjs/ember.js/pull/16877) [CLEANUP] Allow routes to be named "array" and "object"
+### v3.4.7 (December 7, 2018)
+
+- #17271 [BUGFIX] Update `backburner.js` to 2.4.2.
+
##... | false |
Other | emberjs | ember.js | 7ade84efb733aaa677d8f005ef94c2d9b82259e8.json | Fix ESLint issues | packages/@ember/-internals/metal/tests/accessors/mandatory_setters_test.js | @@ -117,7 +117,9 @@ if (DEBUG) {
['@test watched ES5 setter should not be smashed by mandatory setter'](assert) {
let value;
let obj = {
- get foo() {},
+ get foo() {
+ return value;
+ },
set foo(_value) {
value = _value;
... | true |
Other | emberjs | ember.js | 7ade84efb733aaa677d8f005ef94c2d9b82259e8.json | Fix ESLint issues | packages/@ember/-internals/runtime/lib/system/core_object.js | @@ -923,7 +923,7 @@ class CoreObject {
static get superclass() {
let c = Object.getPrototypeOf(this);
- if (c !== Function.prototype) return c;
+ return c !== Function.prototype ? c : undefined;
}
static proto() { | true |
Other | emberjs | ember.js | 0553c777a204076650f82a5b37f0ac4b5851e11b.json | Babel: Update external helpers | packages/external-helpers/lib/external-helpers.js | @@ -1,8 +1,6 @@
import { DEBUG } from '@glimmer/env';
-const create = Object.create;
const setPrototypeOf = Object.setPrototypeOf;
-const defineProperty = Object.defineProperty;
export function classCallCheck(instance, Constructor) {
if (DEBUG) {
@@ -12,51 +10,78 @@ export function classCallCheck(instance, Co... | false |
Other | emberjs | ember.js | 750f5f1dd43fd80cb9db025c224d0de312b15e7b.json | Babel: Add missing `getModuleId` function | broccoli/to-named-amd.js | @@ -1,5 +1,8 @@
const Babel = require('broccoli-babel-transpiler');
-const { resolveRelativeModulePath } = require('ember-cli-babel/lib/relative-module-paths');
+const {
+ resolveRelativeModulePath,
+ getRelativeModulePath,
+} = require('ember-cli-babel/lib/relative-module-paths');
const enifed = require('./transfo... | false |
Other | emberjs | ember.js | 3a5af6a5cb326522b2d24479fb68857631584cdf.json | Update Babel to v7.x | broccoli/to-es5.js | @@ -9,18 +9,17 @@ module.exports = function toES6(tree, _options) {
options.sourceMaps = true;
options.plugins = [
injectBabelHelpers,
- ['transform-es2015-template-literals', { loose: true }],
- ['transform-es2015-literals'],
- ['transform-es2015-arrow-functions'],
- ['transform-es2015-destructu... | true |
Other | emberjs | ember.js | 3a5af6a5cb326522b2d24479fb68857631584cdf.json | Update Babel to v7.x | broccoli/to-named-amd.js | @@ -21,7 +21,7 @@ module.exports = function processModulesOnly(tree, strict = false) {
// in both browser and node-land
injectNodeGlobals,
['module-resolver', { resolvePath: resolveRelativeModulePath }],
- ['transform-es2015-modules-amd', transformOptions],
+ ['@babel/transform-modules-am... | true |
Other | emberjs | ember.js | 3a5af6a5cb326522b2d24479fb68857631584cdf.json | Update Babel to v7.x | package.json | @@ -89,25 +89,24 @@
"@types/rsvp": "^4.0.1",
"auto-dist-tag": "^1.0.0",
"aws-sdk": "^2.46.0",
- "babel-plugin-check-es2015-constants": "^6.22.0",
"babel-plugin-debug-macros": "^0.2.0",
"babel-plugin-filter-imports": "^2.0.4",
"babel-plugin-module-resolver": "^3.1.1",
- "babel-plugin-... | true |
Other | emberjs | ember.js | 3a5af6a5cb326522b2d24479fb68857631584cdf.json | Update Babel to v7.x | yarn.lock | @@ -433,6 +433,13 @@
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
+"@babel/plugin-transform-object-assign@^7.2.0":
+ version "7.2.0"
+ resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.2.0.tgz#6fdeea42be17040f119e38e23ea0f49f31968bde"
+ i... | true |
Other | emberjs | ember.js | fa74f56921955a485707c5c6b2d5584db417ba9f.json | Add v3.7.0-beta.1 to CHANGELOG
[ci skip]
(cherry picked from commit 113dde8a6cb429236706efeca934cc21764fa5a6) | CHANGELOG.md | @@ -1,5 +1,13 @@
# Ember Changelog
+### v3.7.0-beta.1 (December 6, 2018)
+
+- [#17254](https://github.com/emberjs/ember.js/pull/17254) [BREAKING] Explicitly drop support for Node 4
+- [#16898](https://github.com/emberjs/ember.js/pull/16898) Add RFC 232 style util test blueprint for Mocha
+- [#17128](https://github.c... | false |
Other | emberjs | ember.js | f4c7876f1ca0b3092a58121cff20d79d617c30de.json | Add v3.6.0 to CHANGELOG
[ci skip]
(cherry picked from commit f998e71153a668fe0debfb386517239629888b0b) | CHANGELOG.md | @@ -1,34 +1,26 @@
# Ember Changelog
-### v3.6.0-beta.4 (November 12, 2018)
+### v3.6.0 (December 6, 2018)
+- [#17025](https://github.com/emberjs/ember.js/pull/17025) / [#17034](https://github.com/emberjs/ember.js/pull/17034) / [#17036](https://github.com/emberjs/ember.js/pull/17036) / [#17038](https://github.com/e... | false |
Other | emberjs | ember.js | af0016a6d47ae7c585fd80fa3b896f37c0bdffc7.json | Update package.json on master post 3.6 beta cut
- This was inadvertently very delayed | package.json | @@ -1,6 +1,6 @@
{
"name": "ember-source",
- "version": "3.6.0",
+ "version": "3.7.0",
"description": "A JavaScript framework for creating ambitious web applications",
"keywords": [
"ember-addon" | false |
Other | emberjs | ember.js | b1f34f0cf75dac6a869dffff1a4a463a14f8b7f1.json | broccoli/inject-node-globals: Remove unnecessary `resolveModuleSource()` call | broccoli/transforms/inject-node-globals.js | @@ -12,7 +12,7 @@ function injectNodeGlobals({ types: t }) {
if (requireId || moduleId) {
let specifiers = [];
- let source = t.stringLiteral(this.file.resolveModuleSource('node-module'));
+ let source = t.stringLiteral('node-module');
if (requireId) {
... | false |
Other | emberjs | ember.js | e0c16f6db5c13a72215e98a0a6f426bab5ee959b.json | Update old jQuery versions for tests
Updates the suite of tests for old jQuery versions to run with latest of
1.10.x, 1.12.x and 2.2.x.
Unlocks #17227 which is failing due to jQuery 1.8 presumably not handling
events on SVGs correctly. | bin/run-tests.js | @@ -115,10 +115,10 @@ function generateBuiltTests() {
function generateOldJQueryTests() {
testFunctions.push(function() {
- return run('jquery=1.8.3&nolint=true');
+ return run('jquery=1.10.2&nolint=true');
});
testFunctions.push(function() {
- return run('jquery=1.10.2&nolint=true');
+ return r... | false |
Other | emberjs | ember.js | 28945fdc5f50bd6a8389dd8bcbf5136b02be0004.json | bin/run-browserstack-tests: Use `const` for imports | bin/run-browserstack-tests.js | @@ -1,7 +1,7 @@
/* eslint-disable no-console, node/no-unsupported-features */
-var execa = require('execa');
-var chalk = require('chalk');
+const execa = require('execa');
+const chalk = require('chalk');
function run(command, args = []) {
console.log(chalk.dim('$ ' + command + ' ' + args.join(' '))); | false |
Other | emberjs | ember.js | 9f0f7f3334359d256764343a602ff66e453e2faa.json | bin/run-tests: Remove unused `browserstack` test suite | bin/run-tests.js | @@ -177,10 +177,6 @@ switch (process.env.TEST_SUITE) {
console.log('suite: travis-browsers');
require('./run-travis-browser-tests');
break;
- case 'browserstack':
- console.log('suite: browserstack');
- require('./run-browserstack-tests');
- break;
default:
console.log('suite: default (... | false |
Other | emberjs | ember.js | e8801f486f4a430b8f8c5055618fc180ccf15be7.json | bin/run-tests: Remove unused `node` test suite | bin/run-tests.js | @@ -1,7 +1,6 @@
/* eslint-disable no-console */
'use strict';
-const execa = require('execa');
const chalk = require('chalk');
const runInSequence = require('../lib/run-in-sequence');
const path = require('path');
@@ -174,22 +173,6 @@ switch (process.env.TEST_SUITE) {
generateEachPackageTests();
runAnd... | false |
Other | emberjs | ember.js | bd830131f984e1026d18fec254c665b817225c1a.json | tests/docs: Use `QUnit` global instead of importing
for consistency with the other tests in `tests/node/` | .eslintrc.js | @@ -163,7 +163,10 @@ module.exports = {
},
},
{
- files: [ 'tests/node/**/*.js' ],
+ files: [
+ 'tests/docs/**/*.js',
+ 'tests/node/**/*.js',
+ ],
env: {
qunit: true | true |
Other | emberjs | ember.js | bd830131f984e1026d18fec254c665b817225c1a.json | tests/docs: Use `QUnit` global instead of importing
for consistency with the other tests in `tests/node/` | tests/docs/coverage-test.js | @@ -1,8 +1,6 @@
/* eslint-disable no-console */
'use strict';
-const QUnit = require('qunit');
-const test = QUnit.test;
const path = require('path');
QUnit.module('Docs coverage', function(hooks) {
@@ -22,15 +20,15 @@ QUnit.module('Docs coverage', function(hooks) {
expectedItems = new Set(expected.class... | true |
Other | emberjs | ember.js | c6202fcd7cd006bef785c626ae4abdc2699e26d1.json | tests/node/helpers: Convert `appModule()` to `setupAppTest()` helper | tests/node/app-boot-test.js | @@ -1,140 +1,142 @@
-var appModule = require('./helpers/app-module');
+const setupAppTest = require('./helpers/setup-app');
require('./helpers/assert-html-matches').register();
-appModule('App Boot');
+QUnit.module('App Boot', function(hooks) {
+ setupAppTest(hooks);
-QUnit.test('App boots and routes to a URL',... | true |
Other | emberjs | ember.js | c6202fcd7cd006bef785c626ae4abdc2699e26d1.json | tests/node/helpers: Convert `appModule()` to `setupAppTest()` helper | tests/node/helpers/setup-app.js | @@ -58,46 +58,44 @@ var SimpleDOM = require('simple-dom');
* });
*/
-module.exports = function(moduleName) {
- QUnit.module(moduleName, {
- beforeEach: function() {
- var Ember = (this.Ember = require(emberPath));
-
- Ember.testing = true;
-
- var precompile = require(templateCompilerPath).p... | true |
Other | emberjs | ember.js | c6202fcd7cd006bef785c626ae4abdc2699e26d1.json | tests/node/helpers: Convert `appModule()` to `setupAppTest()` helper | tests/node/visit-test.js | @@ -1,5 +1,5 @@
var SimpleDOM = require('simple-dom');
-var appModule = require('./helpers/app-module');
+var setupAppTest = require('./helpers/setup-app');
function assertHTMLMatches(assert, actualHTML, expectedHTML) {
assert.ok(actualHTML.match(expectedHTML), actualHTML + ' matches ' + expectedHTML);
@@ -39,30... | true |
Other | emberjs | ember.js | 3589ebbe863dd3571fac44cc1c7b9a223d470858.json | tests/node/visit: Use native `Promise` instead of `RSVP` | tests/node/visit-test.js | @@ -1,4 +1,3 @@
-var RSVP = require('rsvp');
var SimpleDOM = require('simple-dom');
var appModule = require('./helpers/app-module');
@@ -69,7 +68,7 @@ QUnit.test('FastBoot: basic', function(assert) {
var App = this.createApplication();
- return RSVP.all([
+ return Promise.all([
fastbootVisit(App, '/a'... | false |
Other | emberjs | ember.js | 140d66785dc61304c9df4281ff993fbbd075c829.json | bin/changelog: Use arrow functions | bin/changelog.js | @@ -32,9 +32,7 @@ compareCommits({
})
.then(processPages)
.then(console.log)
- .catch(function(err) {
- console.error(err);
- });
+ .catch(err => console.error(err));
function getCommitMessage(commitInfo) {
let message = commitInfo.commit.message;
@@ -63,14 +61,14 @@ function getCommitMessage(commitI... | false |
Other | emberjs | ember.js | 2130482198ca387a48f02d8ee0126a72b4efd07e.json | bin/changelog: Fix ESLint issues | bin/changelog.js | @@ -1,4 +1,7 @@
#!/usr/bin/env node
+
+/* eslint-disable no-console, node/shebang */
+
'use strict';
/*
@@ -11,11 +14,11 @@
* bin/changelog.js
*/
-var RSVP = require('rsvp');
+var RSVP = require('rsvp');
var GitHubApi = require('github');
-var execSync = require('child_process').execSync;
+var execSyn... | false |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/acceptance-test-test.js | @@ -77,10 +77,7 @@ describe('Blueprint: acceptance-test', function() {
describe('with ember-mocha@0.14.0', function() {
beforeEach(function() {
- modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-mocha', dev: true },
- ]);
+ modifyPackages([{... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/component-test-test.js | @@ -151,10 +151,7 @@ describe('Blueprint: component-test', function() {
describe('with ember-mocha@0.14.0', function() {
beforeEach(function() {
- modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-mocha', dev: true },
- ]);
+ modifyPackages([... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/component-test.js | @@ -21,10 +21,12 @@ describe('Blueprint: component', function() {
describe('in app', function() {
beforeEach(function() {
return emberNew()
- .then(() => modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-cli-qunit', dev: true },
- ]))
+ .the... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/controller-test-test.js | @@ -128,10 +128,7 @@ describe('Blueprint: controller-test', function() {
describe('with ember-mocha@0.14.0', function() {
beforeEach(function() {
- modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-mocha', dev: true },
- ]);
+ modifyPackages(... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/controller-test.js | @@ -22,10 +22,12 @@ describe('Blueprint: controller', function() {
describe('in app', function() {
beforeEach(function() {
return emberNew()
- .then(() => modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-cli-qunit', dev: true },
- ]))
+ .th... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/helper-test-test.js | @@ -128,10 +128,7 @@ describe('Blueprint: helper-test', function() {
describe('with ember-mocha@0.14.0', function() {
beforeEach(function() {
- modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-mocha', dev: true },
- ]);
+ modifyPackages([{ n... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/helper-test.js | @@ -19,11 +19,12 @@ describe('Blueprint: helper', function() {
describe('in app', function() {
beforeEach(function() {
- return emberNew()
- .then(() => modifyPackages([
+ return emberNew().then(() =>
+ modifyPackages([
{ name: 'ember-qunit', delete: true },
{ nam... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/initializer-test.js | @@ -22,10 +22,12 @@ describe('Blueprint: initializer', function() {
describe('in app', function() {
beforeEach(function() {
return emberNew()
- .then(() => modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-cli-qunit', dev: true },
- ]))
+ .t... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/instance-initializer-test.js | @@ -22,10 +22,12 @@ describe('Blueprint: instance-initializer', function() {
describe('in app', function() {
beforeEach(function() {
return emberNew()
- .then(() => modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-cli-qunit', dev: true },
- ]))
+ ... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/mixin-test-test.js | @@ -71,10 +71,7 @@ describe('Blueprint: mixin-test', function() {
describe('with ember-mocha@0.14.0', function() {
beforeEach(function() {
- modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-mocha', dev: true },
- ]);
+ modifyPackages([{ name... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/route-test-test.js | @@ -88,10 +88,7 @@ describe('Blueprint: route-test', function() {
describe('with ember-mocha@0.14.0', function() {
beforeEach(function() {
- modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-mocha', dev: true },
- ]);
+ modifyPackages([{ name... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/route-test.js | @@ -25,10 +25,12 @@ describe('Blueprint: route', function() {
describe('in app', function() {
beforeEach(function() {
return emberNew()
- .then(() => modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-cli-qunit', dev: true },
- ]))
+ .then(()... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/service-test-test.js | @@ -92,10 +92,7 @@ describe('Blueprint: service-test', function() {
describe('with ember-mocha@0.14.0', function() {
beforeEach(function() {
- modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-mocha', dev: true },
- ]);
+ modifyPackages([{ na... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/service-test.js | @@ -22,10 +22,12 @@ describe('Blueprint: service', function() {
describe('in app', function() {
beforeEach(function() {
return emberNew()
- .then(() => modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-cli-qunit', dev: true },
- ]))
+ .then(... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/util-test-test.js | @@ -75,10 +75,7 @@ describe('Blueprint: util-test', function() {
describe('with ember-mocha@0.14.0', function() {
beforeEach(function() {
- modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-mocha', dev: true },
- ]);
+ modifyPackages([{ name:... | true |
Other | emberjs | ember.js | c987968dd9796ea90462f9d54e0d3cf81e981920.json | tests/blueprints: Fix ESLint issues | node-tests/blueprints/util-test.js | @@ -22,10 +22,12 @@ describe('Blueprint: util', function() {
describe('in app', function() {
beforeEach(function() {
return emberNew()
- .then(() => modifyPackages([
- { name: 'ember-qunit', delete: true },
- { name: 'ember-cli-qunit', dev: true },
- ]))
+ .then(() ... | true |
Other | emberjs | ember.js | 3b411ca380afa05b6a686cb0c0ffc2e1d8482bbf.json | Drop support for Node 4 | package.json | @@ -158,7 +158,7 @@
"typescript-eslint-parser": "^18.0.0"
},
"engines": {
- "node": "^4.5 || 6.* || >= 8.*"
+ "node": "6.* || 8.* || >= 10.*"
},
"ember-addon": {
"after": "ember-cli-legacy-blueprints" | false |
Other | emberjs | ember.js | d787f604b141d534724c885881717b06c4c3ea87.json | CI: Remove duplicate `each-package-tests` job
For some unknown reason this was included in both "basic tests" and "additional tests" | .travis.yml | @@ -86,8 +86,6 @@ jobs:
- env: TEST_SUITE=blueprints
node_js: "6"
- env: TEST_SUITE=travis-browsers
- - env:
- - TEST_SUITE=each-package-tests
- stage: deploy
env: | false |
Other | emberjs | ember.js | 6f937698f1a2ab961191b15bed75acbebec36029.json | CI: Use non-sudo method of installing `yarn` | .travis.yml | @@ -13,10 +13,8 @@ before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- - sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- - sudo apt-get update -qq
- - sudo apt-ge... | false |
Other | emberjs | ember.js | 92a166e8714a4a2f690076840869796bea387348.json | CI: Fix `fast_finish` behavior
No idea where `fail_fast` came from, but it doesn't seem to be an actual config option | .travis.yml | @@ -36,6 +36,9 @@ branches:
# npm version tags
- /^v\d+\.\d+\.\d+/
+matrix:
+ fast_finish: true
+
stages:
- basic test
- additional tests
@@ -62,10 +65,7 @@ env:
- secure: e0yxVfwVW61d3Mi/QBOsY6Rfd1mZd3VXUd9xNRoz/fkvQJRuVwDe7oG3NOuJ4LZzvMw7BJ+zpDV9D8nKhAyPEEOgpkkMHUB7Ds83pHG4qSMzm4EAwBCadDLXCQi... | false |
Other | emberjs | ember.js | 7d9c2336fc5c0e2b0792afac24e10a001457cef7.json | CI: Use dedicated commands in `before_install`
This makes it easier to associate the output with the corresponding commands | .travis.yml | @@ -10,23 +10,21 @@ cache:
yarn: true
before_install:
-- |
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
+ - export DISPLAY=:99.0
+ - sh -e /etc/init.d/xvfb start
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" ... | false |
Other | emberjs | ember.js | ab27246721029814ca3feb1264d09f3965b7d734.json | Add blueprints for MU instance initializer | blueprints/instance-initializer-test/index.js | @@ -5,13 +5,45 @@ const path = require('path');
const stringUtils = require('ember-cli-string-utils');
const useTestFrameworkDetector = require('../test-framework-detector');
+const isModuleUnificationProject = require('../module-unification').isModuleUnificationProject;
module.exports = useTestFrameworkDetector... | true |
Other | emberjs | ember.js | ab27246721029814ca3feb1264d09f3965b7d734.json | Add blueprints for MU instance initializer | blueprints/instance-initializer-test/mocha-files/__root__/__testType__/__path__/__name__-test.js | @@ -2,7 +2,7 @@ import { expect } from 'chai';
import { describe, it, beforeEach } from 'mocha';
import Application from '@ember/application';
import { run } from '@ember/runloop';
-import { initialize } from '<%= dasherizedModulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
+import { initialize } fr... | true |
Other | emberjs | ember.js | ab27246721029814ca3feb1264d09f3965b7d734.json | Add blueprints for MU instance initializer | blueprints/instance-initializer-test/qunit-files/__root__/__testType__/__path__/__name__-test.js | @@ -1,6 +1,6 @@
import Application from '@ember/application';
import { run } from '@ember/runloop';
-import { initialize } from '<%= dasherizedModulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
+import { initialize } from '<%= modulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
impor... | true |
Other | emberjs | ember.js | ab27246721029814ca3feb1264d09f3965b7d734.json | Add blueprints for MU instance initializer | blueprints/instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__/__name__-test.js | @@ -1,6 +1,6 @@
import Application from '@ember/application';
-import { initialize } from '<%= dasherizedModulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
+import { initialize } from '<%= modulePrefix %>/instance-initializers/<%= dasherizedModuleName %>';
import { module, test } from 'qunit';
<% ... | true |
Other | emberjs | ember.js | ab27246721029814ca3feb1264d09f3965b7d734.json | Add blueprints for MU instance initializer | blueprints/instance-initializer/index.js | @@ -1,5 +1,23 @@
'use strict';
+const path = require('path');
+const isModuleUnificationProject = require('../module-unification').isModuleUnificationProject;
+
module.exports = {
description: 'Generates an instance initializer.',
+
+ fileMapTokens() {
+ if (isModuleUnificationProject(this.project)) {
+ ... | true |
Other | emberjs | ember.js | ab27246721029814ca3feb1264d09f3965b7d734.json | Add blueprints for MU instance initializer | node-tests/blueprints/instance-initializer-test-test.js | @@ -11,6 +11,7 @@ const expect = chai.expect;
const generateFakePackageManifest = require('../helpers/generate-fake-package-manifest');
const fixture = require('../helpers/fixture');
+const fs = require('fs-extra');
describe('Blueprint: instance-initializer-test', function() {
setupTestHooks(this);
@@ -85,4 +... | true |
Other | emberjs | ember.js | ab27246721029814ca3feb1264d09f3965b7d734.json | Add blueprints for MU instance initializer | node-tests/blueprints/instance-initializer-test.js | @@ -5,9 +5,11 @@ const setupTestHooks = blueprintHelpers.setupTestHooks;
const emberNew = blueprintHelpers.emberNew;
const emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy;
const setupPodConfig = blueprintHelpers.setupPodConfig;
+const expectError = require('../helpers/expect-error');
const chai = req... | true |
Other | emberjs | ember.js | ab27246721029814ca3feb1264d09f3965b7d734.json | Add blueprints for MU instance initializer | node-tests/fixtures/instance-initializer-test/module-unification/default.js | @@ -0,0 +1,25 @@
+import Application from '@ember/application';
+import { run } from '@ember/runloop';
+import { initialize } from 'my-app/init/instance-initializers/foo';
+import { module, test } from 'qunit';
+
+module('Unit | Instance Initializer | foo', {
+ beforeEach() {
+ run(() => {
+ this.application =... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.