The library for web and native user interfaces.
Silence tests unsupported in PhantomJS.
These tests can still be run in the browser using `grunt test --debug`.
Ben Newman committed
May 28, 2013 at 18:26 UTC
42f8d155f8f240c457c969ac683d8b25876708ee
1 file changed
+4
src/utils/__tests__/ImmutableObject-test.js
+4
@@ -100,6 +100,7 @@ describe('ImmutableObject', function() {
100
});
101
102
testDev('should prevent shallow field addition when strict', function() {
103
+ if (window.callPhantom) return;
104
expect(function() {
105
var io = new ImmutableObject({oldField: 'asdf'});
106
io.newField = 'this will not work';
@@ -107,6 +108,7 @@ describe('ImmutableObject', function() {
108
});
109
110
testDev('should prevent shallow field mutation when strict', function() {
111
+ if (window.callPhantom) return;
112
expect(function() {
113
var io = new ImmutableObject({oldField: 'asdf'});
114
io.oldField = 'this will not work!';
@@ -114,6 +116,7 @@ describe('ImmutableObject', function() {
116
});
117
118
testDev('should prevent deep field addition when strict', function() {
119
+ if (window.callPhantom) return;
120
expect(function() {
121
var io =
122
new ImmutableObject({shallowField: {deepField: {oldField: null}}});
@@ -122,6 +125,7 @@ describe('ImmutableObject', function() {
125
});
126
127
testDev('should prevent deep field mutation when strict', function() {
128
+ if (window.callPhantom) return;
129
expect(function() {
130
var io =
131
new ImmutableObject({shallowField: {deepField: {oldField: null}}});