Revert "Revert "Updated sodo search test script with version data""

This reverts commit 7c1ef4ecd0.
This commit is contained in:
Ronald Langeveld 2022-07-06 12:41:42 +02:00
parent 7c1ef4ecd0
commit e8306ffa29
2 changed files with 5 additions and 1 deletions

View File

@ -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"
}
}

View File

@ -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);