Skip to content
Snippets Groups Projects
Commit f1f2753a authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Create a mock cachify for the front end tests.

parent 6e3a013f
No related branches found
No related tags found
No related merge requests found
/*jshint browsers:true, forin: true, laxbreak: true */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
window.cachify = (function() {
"use strict";
// cachify is a node module used for caching resources, as such it is not
// available to the client. The main site makes use of cachify in its
// templates to serve up cached resources. The front end unit tests write
// the main site templates to the DOM to run. Create a mock cachify so the
// front end unit tests can run.
return function(url) { return url; }
}());
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
<script src="mocks/provisioning.js"></script> <script src="mocks/provisioning.js"></script>
<script src="mocks/window.js"></script> <script src="mocks/window.js"></script>
<script src="mocks/winchan.js"></script> <script src="mocks/winchan.js"></script>
<script src="mocks/cachify.js"></script>
<script src="/shared/renderer.js"></script> <script src="/shared/renderer.js"></script>
<script src="/shared/class.js"></script> <script src="/shared/class.js"></script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment