mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
Merge pull request #16209 from keymanapp/fix/auto-test-cookies-and-paths
fix(web): fixes cookie unit-tests and path for OSK resources during testing
This commit is contained in:
commit
21c43452e0
2 changed files with 4 additions and 4 deletions
|
|
@ -117,7 +117,7 @@ describe('CookieSerializer', function () {
|
|||
|
||||
it('finds all matching cookies starting with TestCookie_', () => {
|
||||
const result = CookieSerializer.loadAllMatching(/^TestCookie_/);
|
||||
assert.deepEqual(result, [
|
||||
assert.sameDeepMembers(result, [
|
||||
{ name: COOKIE_ID_1, value: { COOKIE_ID_1: 'foobar1' } },
|
||||
{ name: COOKIE_ID_2, value: { COOKIE_ID_2: 'foobar2' } }
|
||||
]);
|
||||
|
|
@ -125,7 +125,7 @@ describe('CookieSerializer', function () {
|
|||
|
||||
it('finds all matching cookies containing Cookie', () => {
|
||||
const result = CookieSerializer.loadAllMatching(/Cookie/);
|
||||
assert.deepEqual(result, [
|
||||
assert.sameDeepMembers(result, [
|
||||
{ name: COOKIE_ID_1, value: { COOKIE_ID_1: 'foobar1' } },
|
||||
{ name: COOKIE_ID_2, value: { COOKIE_ID_2: 'foobar2' } },
|
||||
{ name: NONMATCHING_COOKIE_ID, value: { NONMATCHING_COOKIE_ID: 'foobar3' } }
|
||||
|
|
@ -134,7 +134,7 @@ describe('CookieSerializer', function () {
|
|||
|
||||
it('returns empty array if no matching cookies', () => {
|
||||
const result = CookieSerializer.loadAllMatching(/^UnknownCookie_/);
|
||||
assert.deepEqual(result, []);
|
||||
assert.sameDeepMembers(result, []);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -17,7 +17,7 @@ const TestResources = {
|
|||
isEmbedded: false,
|
||||
pathConfig: {
|
||||
fonts: '',
|
||||
resources: '/web/build/publish/debug'
|
||||
resources: '/web/build/publish/debug/'
|
||||
},
|
||||
hostDevice: device.coreSpec,
|
||||
allowHideAnimations: false // shortens timings.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue