mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-13 10:55:58 +03:00
Updated sodo search test script with version data
refs https://github.com/TryGhost/Team/issues/1665 - sodo search now includes version data in config to allow fetching css directly
This commit is contained in:
parent
67a60353c3
commit
7cb37d9091
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