Tested strip_scripts utility
diff --git a/xos/core/xoslib/spec/xoslib/utils.test.js b/xos/core/xoslib/spec/xoslib/utils.test.js
index 8326a70..45bbb69 100644
--- a/xos/core/xoslib/spec/xoslib/utils.test.js
+++ b/xos/core/xoslib/spec/xoslib/utils.test.js
@@ -120,8 +120,21 @@
});
describe('The strip_scripts method', () => {
- xit('should be tested', () => {
-
+ it('should be tested', () => {
+ const mockHtml = `
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>Test</title>
+ <script src="myScript.js"></script>
+ </head>
+ <body></body>
+ </html>
+ `;
+
+ let res = strip_scripts(mockHtml);
+ expect(res.indexOf('script')).toBe(-1);
});
});