mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05: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
2 changed files with 5 additions and 1 deletions
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",
|
"fixtures": "test/utils/fixtures/fixtures",
|
||||||
"defaultSettings": "test/utils/fixtures/default-settings.json",
|
"defaultSettings": "test/utils/fixtures/default-settings.json",
|
||||||
"urlCache": "test/utils/fixtures/urls"
|
"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) {
|
})).then(function (rendered) {
|
||||||
should.exist(rendered);
|
should.exist(rendered);
|
||||||
rendered.string.should.containEql('<script defer src="https://unpkg.com/@tryghost/sodo-search');
|
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();
|
done();
|
||||||
}).catch(done);
|
}).catch(done);
|
||||||
|
|
Loading…
Add table
Reference in a new issue