Revert "Revert "Updated sodo search test script with version data""
This reverts commit 7c1ef4ecd0
.
This commit is contained in:
parent
7c1ef4ecd0
commit
e8306ffa29
4
core/shared/config/env/config.testing.json
vendored
4
core/shared/config/env/config.testing.json
vendored
@ -54,5 +54,9 @@
|
||||
"fixtures": "test/utils/fixtures/fixtures",
|
||||
"defaultSettings": "test/utils/fixtures/default-settings.json",
|
||||
"urlCache": "test/utils/fixtures/urls"
|
||||
},
|
||||
"sodoSearch": {
|
||||
"url": "https://unpkg.com/@tryghost/sodo-search@~0.1.0/umd/sodo-search.min.js",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
}
|
||||
|
@ -1750,7 +1750,7 @@ describe('{{ghost_head}} helper', function () {
|
||||
})).then(function (rendered) {
|
||||
should.exist(rendered);
|
||||
rendered.string.should.containEql('<script defer src="https://unpkg.com/@tryghost/sodo-search');
|
||||
rendered.string.should.containEql('data-sodo-search="http://127.0.0.1:2369/" data-key="xyz" data-api="http://127.0.0.1:2369/ghost/api/content/"');
|
||||
rendered.string.should.containEql('data-sodo-search="http://127.0.0.1:2369/" data-version="0.1.0" data-key="xyz" data-api="http://127.0.0.1:2369/ghost/api/content/"');
|
||||
|
||||
done();
|
||||
}).catch(done);
|
||||
|
Loading…
Reference in New Issue
Block a user