Separate jQuery URL test into two different tests

This commit is contained in:
Cătălin Mariș
2014-10-14 22:18:59 +03:00
parent 768a15235f
commit f3a94f5f6e

View File

@@ -164,10 +164,13 @@ function runTests() {
checkString(path.resolve(dirs.dist, '.htaccess'), string, done);
});
it('"index.html" should contain the correct jQuery version', function (done) {
var string = pkg.devDependencies.jquery + '/jquery.min.js"></script>\n' +
' <script>window.jQuery || document.write(\'<script ' +
'src="js/vendor/jquery-' + pkg.devDependencies.jquery + '.min.js';
it('"index.html" should contain the correct jQuery version in the CDN URL', function (done) {
var string = 'ajax.googleapis.com/ajax/libs/jquery/' + pkg.devDependencies.jquery + '/jquery.min.js';
checkString(path.resolve(dirs.dist, 'index.html'), string, done);
});
it('"index.html" should contain the correct jQuery version in the local URL', function (done) {
var string = 'js/vendor/jquery-' + pkg.devDependencies.jquery + '.min.js';
checkString(path.resolve(dirs.dist, 'index.html'), string, done);
});