-
Notifications
You must be signed in to change notification settings - Fork 408
Closed
Description
issues
when writing a test with prototype.js(version 1.6.3). testem version is 0.2.36
execute testem ci
result of testm ci as below:
# Launching Firefox
#
TAP version 13
ok 1 - Firefox "undefined"
# Launching Chrome
# ..
ok 2 - Chrome undefined
ok 3 - Chrome undefined
cause of issue
The cause of this issue is that the Array.ptototype.toJSON implemented in prototype.js returns invalid JSON object. And in testem, the test result handle as a string object.
the version of prototype.js is later than 1.7, this issue does't reproduce.
see: prototypejs/prototype@038a298
I think, This issue is not a testem bug, but also not prototype.js bug.
So, I want you to add known issue of manual.
how to avoid:
- prepare
*.jsfile. this file overwirteArray.ptototype.toJSON
I name this file compatible.js
(function(){
Array.prototype.toJSON = null;
})();- add configuration file to include
compatible.jsafter includeptototype.js
{
"src_files" : [ "prototype.js", "compatible.js" ]
}
and execute testem ci. it iworks well.
Metadata
Metadata
Assignees
Labels
No labels