-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX beta] Fix a recent regression which resulted in `Ember.A(null…
…)` returning `null` instead of an array. See issue #13284.
- Loading branch information
Wesley Workman
committed
Apr 9, 2016
1 parent
6498702
commit 4dea78c
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/ember-runtime/tests/system/native_array/a_test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import EmberArray from 'ember-runtime/mixins/array'; | ||
import { A } from 'ember-runtime/system/native_array'; | ||
|
||
QUnit.module('Ember.A'); | ||
|
||
QUnit.test('Ember.A', function() { | ||
deepEqual(A([1, 2]), [1, 2], 'array values were not be modified'); | ||
deepEqual(A(), [], 'returned an array with no arguments'); | ||
deepEqual(A(null), [], 'returned an array with a null argument'); | ||
ok(EmberArray.detect(A()), 'returned an ember array'); | ||
ok(EmberArray.detect(A([1, 2])), 'returned an ember array'); | ||
}); |