Tests: Add ICE detection test.

ICE is the internal boilerplate we use to freeze/unfreeze themes when
trying to force-feed them Markdown or other formatted data.
This commit is contained in:
hacksalot committed 2016-01-01 20:26:47 -05:00
1 parent d8b9d86896
commit e4a549ed30
2 files changed
+33 -1

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
/**
Definition of the SyntaxErrorEx class.
@module file-contains.js
*/
(function(){
module.exports = function( file, needle ) {
return require('fs').readFileSync(file,'utf-8').indexOf( needle ) > -1;
};
}());