$ date
--- stdout ---
Fri Mar 31 20:12:07 UTC 2023
--- end ---
$ git clone file:///srv/git/mediawiki-extensions-MediaSearch.git repo --depth=1 -b master
--- stderr ---
Cloning into 'repo'...
--- stdout ---
--- end ---
$ git config user.name libraryupgrader
--- stdout ---
--- end ---
$ git config user.email tools.libraryupgrader@tools.wmflabs.org
--- stdout ---
--- end ---
$ git submodule update --init
--- stdout ---
--- end ---
$ grr init
--- stdout ---
Installed commit-msg hook.
--- end ---
$ git show-ref refs/heads/master
--- stdout ---
b009317a085f0d47977d79224e055d61d7caac41 refs/heads/master
--- end ---
$ /usr/bin/npm audit --json --legacy-peer-deps
--- stdout ---
{
"auditReportVersion": 2,
"vulnerabilities": {
"babel-core": {
"name": "babel-core",
"severity": "high",
"isDirect": true,
"via": [
"babel-register",
"json5"
],
"effects": [
"babel-register"
],
"range": "5.8.20 - 7.0.0-beta.3",
"nodes": [
"node_modules/babel-core"
],
"fixAvailable": {
"name": "babel-core",
"version": "4.7.16",
"isSemVerMajor": true
}
},
"babel-register": {
"name": "babel-register",
"severity": "high",
"isDirect": false,
"via": [
"babel-core"
],
"effects": [
"babel-core"
],
"range": "*",
"nodes": [
"node_modules/babel-register"
],
"fixAvailable": {
"name": "babel-core",
"version": "4.7.16",
"isSemVerMajor": true
}
},
"decode-uri-component": {
"name": "decode-uri-component",
"severity": "low",
"isDirect": false,
"via": [
{
"source": 1091569,
"name": "decode-uri-component",
"dependency": "decode-uri-component",
"title": "decode-uri-component vulnerable to Denial of Service (DoS)",
"url": "https://github.com/advisories/GHSA-w573-4hg7-7wgq",
"severity": "low",
"cwe": [
"CWE-20"
],
"cvss": {
"score": 0,
"vectorString": null
},
"range": "<0.2.1"
}
],
"effects": [],
"range": "<0.2.1",
"nodes": [
"node_modules/decode-uri-component"
],
"fixAvailable": true
},
"grunt": {
"name": "grunt",
"severity": "high",
"isDirect": true,
"via": [
{
"source": 1088711,
"name": "grunt",
"dependency": "grunt",
"title": "Path Traversal in Grunt",
"url": "https://github.com/advisories/GHSA-j383-35pm-c5h4",
"severity": "moderate",
"cwe": [
"CWE-22"
],
"cvss": {
"score": 5.5,
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
},
"range": "<1.5.2"
},
{
"source": 1089539,
"name": "grunt",
"dependency": "grunt",
"title": "Race Condition in Grunt",
"url": "https://github.com/advisories/GHSA-rm36-94g8-835r",
"severity": "high",
"cwe": [
"CWE-367"
],
"cvss": {
"score": 7,
"vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
},
"range": "<1.5.3"
}
],
"effects": [],
"range": "<=1.5.2",
"nodes": [
"node_modules/grunt"
],
"fixAvailable": {
"name": "grunt",
"version": "1.6.1",
"isSemVerMajor": false
}
},
"json5": {
"name": "json5",
"severity": "high",
"isDirect": false,
"via": [
{
"source": 1091147,
"name": "json5",
"dependency": "json5",
"title": "Prototype Pollution in JSON5 via Parse Method",
"url": "https://github.com/advisories/GHSA-9c47-m6qq-7p4h",
"severity": "high",
"cwe": [
"CWE-1321"
],
"cvss": {
"score": 7.1,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H"
},
"range": "<1.0.2"
},
{
"source": 1091148,
"name": "json5",
"dependency": "json5",
"title": "Prototype Pollution in JSON5 via Parse Method",
"url": "https://github.com/advisories/GHSA-9c47-m6qq-7p4h",
"severity": "high",
"cwe": [
"CWE-1321"
],
"cvss": {
"score": 7.1,
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H"
},
"range": ">=2.0.0 <2.2.2"
}
],
"effects": [
"babel-core"
],
"range": "<1.0.2 || >=2.0.0 <2.2.2",
"nodes": [
"node_modules/babel-core/node_modules/json5",
"node_modules/json5"
],
"fixAvailable": {
"name": "babel-core",
"version": "4.7.16",
"isSemVerMajor": true
}
}
},
"metadata": {
"vulnerabilities": {
"info": 0,
"low": 1,
"moderate": 0,
"high": 4,
"critical": 0,
"total": 5
},
"dependencies": {
"prod": 1,
"dev": 970,
"optional": 1,
"peer": 0,
"peerOptional": 0,
"total": 970
}
}
}
--- end ---
$ /usr/bin/composer install
--- stderr ---
No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
Loading composer repositories with package information
Info from https://repo.packagist.org: [37;44m#StandWith[30;43mUkraine[0m
Updating dependencies
Lock file operations: 36 installs, 0 updates, 0 removals
- Locking composer/pcre (3.1.0)
- Locking composer/semver (3.3.2)
- Locking composer/spdx-licenses (1.5.7)
- Locking composer/xdebug-handler (3.0.3)
- Locking doctrine/deprecations (v1.0.0)
- Locking felixfbecker/advanced-json-rpc (v3.2.1)
- Locking mediawiki/mediawiki-codesniffer (v41.0.0)
- Locking mediawiki/mediawiki-phan-config (0.12.0)
- Locking mediawiki/minus-x (1.1.1)
- Locking mediawiki/phan-taint-check-plugin (4.0.0)
- Locking microsoft/tolerant-php-parser (v0.1.1)
- Locking netresearch/jsonmapper (v4.1.0)
- Locking phan/phan (5.4.1)
- Locking php-parallel-lint/php-console-color (v1.0.1)
- Locking php-parallel-lint/php-console-highlighter (v1.0.0)
- Locking php-parallel-lint/php-parallel-lint (v1.3.2)
- Locking phpdocumentor/reflection-common (2.2.0)
- Locking phpdocumentor/reflection-docblock (5.3.0)
- Locking phpdocumentor/type-resolver (1.7.1)
- Locking phpstan/phpdoc-parser (1.16.1)
- Locking psr/container (1.1.2)
- Locking psr/log (1.1.4)
- Locking sabre/event (5.1.4)
- Locking squizlabs/php_codesniffer (3.7.2)
- Locking symfony/console (v5.4.22)
- Locking symfony/deprecation-contracts (v2.5.2)
- Locking symfony/polyfill-ctype (v1.27.0)
- Locking symfony/polyfill-intl-grapheme (v1.27.0)
- Locking symfony/polyfill-intl-normalizer (v1.27.0)
- Locking symfony/polyfill-mbstring (v1.27.0)
- Locking symfony/polyfill-php73 (v1.27.0)
- Locking symfony/polyfill-php80 (v1.27.0)
- Locking symfony/service-contracts (v2.5.2)
- Locking symfony/string (v5.4.22)
- Locking tysonandre/var_representation_polyfill (0.1.3)
- Locking webmozart/assert (1.11.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 36 installs, 0 updates, 0 removals
0 [>---------------------------] 0 [->--------------------------] 0 [--->------------------------] - Installing composer/pcre (3.1.0): Extracting archive
- Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
- Installing squizlabs/php_codesniffer (3.7.2): Extracting archive
- Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
- Installing composer/spdx-licenses (1.5.7): Extracting archive
- Installing composer/semver (3.3.2): Extracting archive
- Installing mediawiki/mediawiki-codesniffer (v41.0.0): Extracting archive
- Installing tysonandre/var_representation_polyfill (0.1.3): Extracting archive
- Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
- Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
- Installing symfony/string (v5.4.22): Extracting archive
- Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
- Installing psr/container (1.1.2): Extracting archive
- Installing symfony/service-contracts (v2.5.2): Extracting archive
- Installing symfony/polyfill-php73 (v1.27.0): Extracting archive
- Installing symfony/console (v5.4.22): Extracting archive
- Installing sabre/event (5.1.4): Extracting archive
- Installing netresearch/jsonmapper (v4.1.0): Extracting archive
- Installing microsoft/tolerant-php-parser (v0.1.1): Extracting archive
- Installing webmozart/assert (1.11.0): Extracting archive
- Installing phpstan/phpdoc-parser (1.16.1): Extracting archive
- Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
- Installing doctrine/deprecations (v1.0.0): Extracting archive
- Installing phpdocumentor/type-resolver (1.7.1): Extracting archive
- Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
- Installing felixfbecker/advanced-json-rpc (v3.2.1): Extracting archive
- Installing psr/log (1.1.4): Extracting archive
- Installing composer/xdebug-handler (3.0.3): Extracting archive
- Installing phan/phan (5.4.1): Extracting archive
- Installing mediawiki/phan-taint-check-plugin (4.0.0): Extracting archive
- Installing mediawiki/mediawiki-phan-config (0.12.0): Extracting archive
- Installing mediawiki/minus-x (1.1.1): Extracting archive
- Installing php-parallel-lint/php-console-color (v1.0.1): Extracting archive
- Installing php-parallel-lint/php-console-highlighter (v1.0.0): Extracting archive
- Installing php-parallel-lint/php-parallel-lint (v1.3.2): Extracting archive
0/27 [>---------------------------] 0%
10/27 [==========>-----------------] 37%
20/27 [====================>-------] 74%
27/27 [============================] 100%4 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
14 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
--- stdout ---
--- end ---
Upgrading n:grunt from 1.4.0 -> 1.6.1
Upgrading n:grunt-banana-checker from 0.9.0 -> 0.10.0
Upgrading n:vue from 3.2.23 -> 3.2.37
Upgrading n:@vue/compat from 3.2.23 -> 3.2.37
Upgrading n:@vue/compiler-sfc from 3.2.23 -> 3.2.37
$ /usr/bin/npm install
--- stderr ---
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
--- stdout ---
added 967 packages, and audited 968 packages in 7s
89 packages are looking for funding
run `npm fund` for details
4 vulnerabilities (1 low, 3 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
--- end ---
$ package-lock-lint package-lock.json
--- stdout ---
Checking package-lock.json
--- end ---
$ /usr/bin/npm ci --legacy-peer-deps
--- stderr ---
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
--- stdout ---
added 967 packages, and audited 968 packages in 7s
89 packages are looking for funding
run `npm fund` for details
4 vulnerabilities (1 low, 3 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
--- end ---
$ /usr/bin/npm test
--- stderr ---
PASS tests/jest/store/actions.test.js
PASS tests/jest/store/mutations.test.js
FAIL tests/jest/components/QuickView.test.js
● QuickView › when image data is provided › displays a header image
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
49 |
50 | it( 'displays a header image', () => {
> 51 | const wrapper = shallowMount( QuickView, {
| ^
52 | props: {
53 | title: imageSampleResult.title,
54 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:51:20)
● QuickView › when image data is provided › displays close, next, and previous buttons
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
64 |
65 | it( 'displays close, next, and previous buttons', () => {
> 66 | const wrapper = shallowMount( QuickView, {
| ^
67 | props: {
68 | title: imageSampleResult.title,
69 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:66:20)
● QuickView › when image data is provided › emits a "close" event when the close button is clicked
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
84 |
85 | it( 'emits a "close" event when the close button is clicked', done => {
> 86 | const wrapper = shallowMount( QuickView, {
| ^
87 | props: {
88 | title: imageSampleResult.title,
89 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:86:20)
● QuickView › when image data is provided › emits a "next" event when the next button is clicked
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
104 |
105 | it( 'emits a "next" event when the next button is clicked', done => {
> 106 | const wrapper = shallowMount( QuickView, {
| ^
107 | props: {
108 | title: imageSampleResult.title,
109 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:106:20)
● QuickView › when image data is provided › emits a "previous" event when the previous button is clicked
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
124 |
125 | it( 'emits a "previous" event when the previous button is clicked', done => {
> 126 | const wrapper = shallowMount( QuickView, {
| ^
127 | props: {
128 | title: imageSampleResult.title,
129 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:126:20)
● QuickView › when image data is provided › applies the appropriate class to the base element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
144 |
145 | it( 'applies the appropriate class to the base element', () => {
> 146 | const wrapper = shallowMount( QuickView, {
| ^
147 | props: {
148 | title: imageSampleResult.title,
149 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:146:20)
● QuickView › when image data is provided › displays an image title
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
159 |
160 | it( 'displays an image title', () => {
> 161 | const wrapper = shallowMount( QuickView, {
| ^
162 | props: {
163 | title: imageSampleResult.title,
164 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:161:20)
● QuickView › when image data is provided › displays an image description
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
174 |
175 | it( 'displays an image description', () => {
> 176 | const wrapper = shallowMount( QuickView, {
| ^
177 | props: {
178 | title: imageSampleResult.title,
179 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:176:20)
● QuickView › when image data is provided › displays the image artist
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
189 |
190 | it( 'displays the image artist', () => {
> 191 | const wrapper = shallowMount( QuickView, {
| ^
192 | props: {
193 | title: imageSampleResult.title,
194 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:191:20)
● QuickView › when image data is provided › displays the image license information
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
204 |
205 | it( 'displays the image license information', () => {
> 206 | const wrapper = shallowMount( QuickView, {
| ^
207 | props: {
208 | title: imageSampleResult.title,
209 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:206:20)
● QuickView › when image data is provided › displays the image assessment
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
219 |
220 | it( 'displays the image assessment', () => {
> 221 | const wrapper = shallowMount( QuickView, {
| ^
222 | props: {
223 | title: imageSampleResult.title,
224 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:221:20)
● QuickView › when image data is provided › displays a copy text section
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
237 |
238 | it( 'displays a copy text section', () => {
> 239 | const wrapper = shallowMount( QuickView, {
| ^
240 | props: {
241 | title: imageSampleResult.title,
242 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:239:20)
● QuickView › when image data is provided › displays the image name without extension
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
252 |
253 | it( 'displays the image name without extension', () => {
> 254 | const wrapper = shallowMount( QuickView, {
| ^
255 | props: {
256 | title: imageSampleResult.title,
257 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:254:20)
● QuickView › when image data is provided › displays the image creation date
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
267 |
268 | it( 'displays the image creation date', () => {
> 269 | const wrapper = shallowMount( QuickView, {
| ^
270 | props: {
271 | title: imageSampleResult.title,
272 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:269:20)
● QuickView › when image data is provided › displays the image resolution
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
282 |
283 | it( 'displays the image resolution', () => {
> 284 | const wrapper = shallowMount( QuickView, {
| ^
285 | props: {
286 | title: imageSampleResult.title,
287 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:284:20)
● QuickView › when image data is provided › displays the image mine-type
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
297 |
298 | it( 'displays the image mine-type', () => {
> 299 | const wrapper = shallowMount( QuickView, {
| ^
300 | props: {
301 | title: imageSampleResult.title,
302 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:299:20)
● QuickView › when image data is provided › contains a "more details" call-to-action button
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
312 |
313 | it( 'contains a "more details" call-to-action button', () => {
> 314 | const wrapper = shallowMount( QuickView, {
| ^
315 | props: {
316 | title: imageSampleResult.title,
317 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:314:20)
● QuickView › when video data is provided › Renders and sd-player component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
331 | describe( 'when video data is provided', () => {
332 | it( 'Renders and sd-player component', () => {
> 333 | const wrapper = shallowMount( QuickView, {
| ^
334 | props: {
335 | title: videoSampleResult.title,
336 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:333:20)
● QuickView › when video data is provided › applies the appropriate class to the base element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
345 |
346 | it( 'applies the appropriate class to the base element', () => {
> 347 | const wrapper = shallowMount( QuickView, {
| ^
348 | props: {
349 | title: imageSampleResult.title,
350 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:347:20)
● QuickView › when video data is provided › applies the appropriate class for dialog
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
359 |
360 | it( 'applies the appropriate class for dialog', () => {
> 361 | const wrapper = shallowMount( QuickView, {
| ^
362 | props: {
363 | title: imageSampleResult.title,
364 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:361:20)
● QuickView › Computed › imageClasses › Returns the correct class when image is Extra small
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
376 | describe( 'imageClasses', () => {
377 | it( 'Returns the correct class when image is Extra small', () => {
> 378 | const wrapper = shallowMount( QuickView, {
| ^
379 | props: {
380 | title: imageSampleResult.title,
381 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:378:21)
● QuickView › Computed › imageClasses › Returns the correct class when image is not thumbnail Wrapper Style
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
396 |
397 | it( 'Returns the correct class when image is not thumbnail Wrapper Style', () => {
> 398 | const wrapper = shallowMount( QuickView, {
| ^
399 | props: {
400 | title: imageSampleResult.title,
401 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:398:21)
● QuickView › Computed › srcset › Returns false if resizeUrl is not a function
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
428 | } );
429 |
> 430 | const wrapper = shallowMount( QuickView, {
| ^
431 | props: {
432 | title: imageSampleResult.title,
433 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:430:21)
● QuickView › Computed › srcset › include the just first PREVIEW_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
443 | it( 'include the just first PREVIEW_SIZE in string return', () => {
444 | const PREVIEW_SIZES = [ '640', '800', '1200', '1600' ];
> 445 | const wrapper = shallowMount( QuickView, {
| ^
446 | props: {
447 | title: imageSampleResult.title,
448 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:445:21)
● QuickView › Computed › srcset › When it is a dialog › include each PREVIEW_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
463 | it( 'include each PREVIEW_SIZE in string return', () => {
464 | const PREVIEW_SIZES = [ '640', '800', '1200', '1600' ];
> 465 | const wrapper = shallowMount( QuickView, {
| ^
466 | props: {
467 | title: imageSampleResult.title,
468 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:465:22)
● QuickView › Computed › srcset › When it is a dialog › include each MAX_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
481 | it( 'include each MAX_SIZE in string return', () => {
482 | const MAX_SIZE = '2000';
> 483 | const wrapper = shallowMount( QuickView, {
| ^
484 | props: {
485 | title: imageSampleResult.title,
486 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:483:22)
● QuickView › Computed › sizes › include the just first PREVIEW_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
504 | it( 'include the just first PREVIEW_SIZE in string return', () => {
505 | const PREVIEW_SIZES = [ '640', '800', '1200', '1600' ];
> 506 | const wrapper = shallowMount( QuickView, {
| ^
507 | props: {
508 | title: imageSampleResult.title,
509 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:506:21)
● QuickView › Computed › sizes › When it is a dialog › include each PREVIEW_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
524 | it( 'include each PREVIEW_SIZE in string return', () => {
525 | const PREVIEW_SIZES = [ '640', '800', '1200', '1600' ];
> 526 | const wrapper = shallowMount( QuickView, {
| ^
527 | props: {
528 | title: imageSampleResult.title,
529 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:526:22)
● QuickView › Computed › sizes › When it is a dialog › include each MAX_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
542 | it( 'include each MAX_SIZE in string return', () => {
543 | const MAX_SIZE = '2000';
> 544 | const wrapper = shallowMount( QuickView, {
| ^
545 | props: {
546 | title: imageSampleResult.title,
547 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:544:22)
● QuickView › Computed › metadata › when it is of type image › Returns the sample extmetadata
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
559 | describe( 'when it is of type image', () => {
560 | it( 'Returns the sample extmetadata', () => {
> 561 | const wrapper = shallowMount( QuickView, {
| ^
562 | props: {
563 | title: imageSampleResult.title,
564 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:561:22)
● QuickView › Computed › metadata › when it is of type audio › Returns the sample extmetadata
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
575 | describe( 'when it is of type audio', () => {
576 | it( 'Returns the sample extmetadata', () => {
> 577 | const wrapper = shallowMount( QuickView, {
| ^
578 | props: {
579 | title: videoSampleResult.title,
580 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:577:22)
● QuickView › Computed › metadata › when it is of type video › Returns the sample extmetadata
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
591 | describe( 'when it is of type video', () => {
592 | it( 'Returns the sample extmetadata', () => {
> 593 | const wrapper = shallowMount( QuickView, {
| ^
594 | props: {
595 | title: videoSampleResult.title,
596 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:593:22)
● QuickView › Computed › licenseText › when metadata is not set › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
609 | describe( 'when metadata is not set', () => {
610 | it( 'Returns null', () => {
> 611 | const wrapper = shallowMount( QuickView, {
| ^
612 | props: {
613 | title: imageSampleResult.title,
614 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:611:22)
● QuickView › Computed › licenseText › when metadata includes UsageTerms › Returns UsageTerms value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
624 | describe( 'when metadata includes UsageTerms', () => {
625 | it( 'Returns UsageTerms value', () => {
> 626 | const wrapper = shallowMount( QuickView, {
| ^
627 | props: {
628 | title: imageSampleResult.title,
629 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:626:22)
● QuickView › Computed › licenseText › when metadata includes LicenseShortName › Returns LicenseShortName value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
646 | };
647 |
> 648 | const wrapper = shallowMount( QuickView, {
| ^
649 | props: {
650 | title: imageSampleResult.title,
651 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:648:22)
● QuickView › Computed › licenseIcon › when metadata is not set › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
663 | describe( 'when metadata is not set', () => {
664 | it( 'Returns null', () => {
> 665 | const wrapper = shallowMount( QuickView, {
| ^
666 | props: {
667 | title: imageSampleResult.title,
668 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:665:22)
● QuickView › Computed › licenseIcon › when metadata includes License › Returns UsageTerms value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
679 | it( 'Returns UsageTerms value', () => {
680 | const getLicenseIconSpy = jest.spyOn( QuickView.methods, 'getLicenseIcon' );
> 681 | shallowMount( QuickView, {
| ^
682 | props: {
683 | title: imageSampleResult.title,
684 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:681:6)
● QuickView › Computed › licenseIcon › when metadata includes LicenseShortName › Returns LicenseShortName value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
704 | };
705 |
> 706 | shallowMount( QuickView, {
| ^
707 | props: {
708 | title: imageSampleResult.title,
709 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:706:6)
● QuickView › Computed › LicenseUrl › when metadata is not set › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
723 | describe( 'when metadata is not set', () => {
724 | it( 'Returns null', () => {
> 725 | const wrapper = shallowMount( QuickView, {
| ^
726 | props: {
727 | title: imageSampleResult.title,
728 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:725:22)
● QuickView › Computed › LicenseUrl › when metadata is set › Returns LicenseUrl value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
738 | describe( 'when metadata is set', () => {
739 | it( 'Returns LicenseUrl value', () => {
> 740 | const wrapper = shallowMount( QuickView, {
| ^
741 | props: {
742 | title: imageSampleResult.title,
743 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:740:22)
● QuickView › Computed › assessmentList › when assessment is not set › return false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
757 | describe( 'when assessment is not set', () => {
758 | it( 'return false', () => {
> 759 | const wrapper = shallowMount( QuickView, {
| ^
760 | props: {
761 | title: imageSampleResult.title,
762 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:759:22)
● QuickView › Computed › assessmentList › when assessment is set › return false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
776 | };
777 |
> 778 | const wrapper = shallowMount( QuickView, {
| ^
779 | props: {
780 | title: imageSampleResult.title,
781 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:778:22)
● QuickView › Computed › creationDate › when DateTimeOriginal is an instance of Date › Returns the original Date string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
798 | it( 'Returns the original Date string', () => {
799 |
> 800 | const wrapper = shallowMount( QuickView, {
| ^
801 | props: {
802 | title: imageSampleResult.title,
803 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:800:22)
● QuickView › Computed › creationDate › when DateTimeOriginal is not an instance of Date › Returns the original Date string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
819 | };
820 |
> 821 | const wrapper = shallowMount( QuickView, {
| ^
822 | props: {
823 | title: imageSampleResult.title,
824 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:821:22)
● QuickView › Computed › resolution › When width is missing › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
838 | imageSampleResult.imageinfo[ 0 ].width = null;
839 |
> 840 | const wrapper = shallowMount( QuickView, {
| ^
841 | props: {
842 | title: imageSampleResult.title,
843 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:840:22)
● QuickView › Computed › resolution › When height is missing › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
855 | imageSampleResult.imageinfo[ 0 ].height = null;
856 |
> 857 | const wrapper = shallowMount( QuickView, {
| ^
858 | props: {
859 | title: imageSampleResult.title,
860 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:857:22)
● QuickView › Computed › resolution › When values are available › Returns a formatted value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
871 | it( 'Returns a formatted value', () => {
872 |
> 873 | const wrapper = shallowMount( QuickView, {
| ^
874 | props: {
875 | title: imageSampleResult.title,
876 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:873:22)
● QuickView › Computed › mimeType › Returns mime property of provided info
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
887 | describe( 'mimeType', () => {
888 | it( 'Returns mime property of provided info', () => {
> 889 | const wrapper = shallowMount( QuickView, {
| ^
890 | props: {
891 | title: imageSampleResult.title,
892 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:889:21)
● QuickView › Computed › mimeType › Returns empty object if mediatype is image
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
902 | describe( 'mimeType', () => {
903 | it( 'Returns empty object if mediatype is image', () => {
> 904 | const wrapper = shallowMount( QuickView, {
| ^
905 | props: {
906 | title: imageSampleResult.title,
907 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:904:21)
● QuickView › Computed › mimeType › Returns object if mediatype is audio
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
915 | } );
916 | it( 'Returns object if mediatype is audio', () => {
> 917 | const wrapper = shallowMount( QuickView, {
| ^
918 | props: {
919 | title: videoSampleResult.title,
920 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:917:21)
● QuickView › Computed › mimeType › Returns object if mediatype is video
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
936 | } );
937 | it( 'Returns object if mediatype is video', () => {
> 938 | const wrapper = shallowMount( QuickView, {
| ^
939 | props: {
940 | title: videoSampleResult.title,
941 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:938:21)
● QuickView › Methods › close › When triggered by keyboard › emit a "close" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
963 | describe( 'When triggered by keyboard', () => {
964 | it( 'emit a "close" event', () => {
> 965 | const wrapper = shallowMount( QuickView, {
| ^
966 | props: {
967 | title: imageSampleResult.title,
968 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:965:22)
● QuickView › Methods › close › When triggered by keyboard › provide a boolean argument with emitted value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
982 | } );
983 | it( 'provide a boolean argument with emitted value', () => {
> 984 | const wrapper = shallowMount( QuickView, {
| ^
985 | props: {
986 | title: imageSampleResult.title,
987 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:984:22)
● QuickView › Methods › close › When triggered by mouse › emit a "close" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1003 | describe( 'When triggered by mouse', () => {
1004 | it( 'emit a "close" event', () => {
> 1005 | const wrapper = shallowMount( QuickView, {
| ^
1006 | props: {
1007 | title: imageSampleResult.title,
1008 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1005:22)
● QuickView › Methods › getLicenseIcon › Returns logoCC icon › when licence name starts with "cc"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1020 | describe( 'Returns logoCC icon', () => {
1021 | it( 'when licence name starts with "cc"', () => {
> 1022 | const wrapper = shallowMount( QuickView, {
| ^
1023 | props: {
1024 | title: imageSampleResult.title,
1025 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1022:22)
● QuickView › Methods › getLicenseIcon › Returns logoCC icon › when licence name starts with "attribution"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1033 | } );
1034 | it( 'when licence name starts with "attribution"', () => {
> 1035 | const wrapper = shallowMount( QuickView, {
| ^
1036 | props: {
1037 | title: imageSampleResult.title,
1038 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1035:22)
● QuickView › Methods › getLicenseIcon › Returns sdIconUnLock icon › when licence name starts with "pd"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1048 | describe( 'Returns sdIconUnLock icon', () => {
1049 | it( 'when licence name starts with "pd"', () => {
> 1050 | const wrapper = shallowMount( QuickView, {
| ^
1051 | props: {
1052 | title: imageSampleResult.title,
1053 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1050:22)
● QuickView › Methods › getLicenseIcon › Returns sdIconUnLock icon › when licence name starts with "no restrictions"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1061 | } );
1062 | it( 'when licence name starts with "no restrictions"', () => {
> 1063 | const wrapper = shallowMount( QuickView, {
| ^
1064 | props: {
1065 | title: imageSampleResult.title,
1066 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1063:22)
● QuickView › Methods › getLicenseIcon › Returns sdIconReference icon › when licence name is uknown"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1076 | describe( 'Returns sdIconReference icon', () => {
1077 | it( 'when licence name is uknown"', () => {
> 1078 | const wrapper = shallowMount( QuickView, {
| ^
1079 | props: {
1080 | title: imageSampleResult.title,
1081 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1078:22)
● QuickView › Methods › getThumbnailWrapperStyle › when image is landscape › set thumbnailWrapperStyle values
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1097 | imageSampleResult.imageinfo[ 0 ].height = 500;
1098 |
> 1099 | const wrapper = shallowMount( QuickView, {
| ^
1100 | props: {
1101 | title: imageSampleResult.title,
1102 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1099:22)
● QuickView › Methods › getThumbnailWrapperStyle › when image is portrait › set thumbnailWrapperStyle values
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1121 | imageSampleResult.imageinfo[ 0 ].height = 1000;
1122 |
> 1123 | const wrapper = shallowMount( QuickView, {
| ^
1124 | props: {
1125 | title: imageSampleResult.title,
1126 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1123:22)
● QuickView › Methods › getThumbnailWrapperStyle › when height is less than 100 › set isExtraSmall to true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1144 | imageSampleResult.imageinfo[ 0 ].height = 1000;
1145 |
> 1146 | const wrapper = shallowMount( QuickView, {
| ^
1147 | props: {
1148 | title: imageSampleResult.title,
1149 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1146:22)
● QuickView › Methods › onThumbnailLoad › sets thumbnailWrapperStyle to false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1160 | describe( 'onThumbnailLoad', () => {
1161 | it( 'sets thumbnailWrapperStyle to false', () => {
> 1162 | const wrapper = shallowMount( QuickView, {
| ^
1163 | props: {
1164 | title: imageSampleResult.title,
1165 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1162:21)
● QuickView › Methods › onPlay › logs a quickview_media_play action
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1175 | describe( 'onPlay', () => {
1176 | it( 'logs a quickview_media_play action', () => {
> 1177 | const wrapper = shallowMount( QuickView, {
| ^
1178 | props: {
1179 | title: imageSampleResult.title,
1180 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1177:21)
● QuickView › Methods › handleFilenameCopy › logs a quickview_filename_copy action
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1194 | describe( 'handleFilenameCopy', () => {
1195 | it( 'logs a quickview_filename_copy action', () => {
> 1196 | const wrapper = shallowMount( QuickView, {
| ^
1197 | props: {
1198 | title: imageSampleResult.title,
1199 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1196:21)
● QuickView › Methods › handleWikitextCopy › logs a quickview_wikitext_link_copy action
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1213 | describe( 'handleWikitextCopy', () => {
1214 | it( 'logs a quickview_wikitext_link_copy action', () => {
> 1215 | const wrapper = shallowMount( QuickView, {
| ^
1216 | props: {
1217 | title: imageSampleResult.title,
1218 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1215:21)
● QuickView › mounted › show spinner after timeout
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1235 | jest.useFakeTimers();
1236 |
> 1237 | const wrapper = shallowMount( QuickView, {
| ^
1238 | props: {
1239 | title: imageSampleResult.title,
1240 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1237:20)
FAIL tests/jest/mixins/autocompleteLookupHandler.test.js
● AutocompleteLookupHandler › clearLookupResults › lookupResults array is empty
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 | };
27 |
> 28 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
29 |
30 | wrapper.setData( {
31 | lookupResults: [ 'result1', 'result2' ]
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:28:33)
● AutocompleteLookupHandler › getDebouncedLookupResults › triggers getLookupResults
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
54 | };
55 |
> 56 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
57 |
58 | const mockGetLookupResults = jest.fn();
59 | wrapper.vm.getLookupResults = mockGetLookupResults;
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:56:33)
● AutocompleteLookupHandler › getLookupResults › with empty input passed clear lookupResults
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
79 | };
80 |
> 81 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
82 |
83 | wrapper.setData( {
84 | lookupResults: [ 'result1', 'result2' ]
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:81:33)
● AutocompleteLookupHandler › getLookupResults › with invalid input passed › doLookupRequest not called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
101 | };
102 |
> 103 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
104 |
105 | const mockDoLookupRequest = jest.fn();
106 | wrapper.vm.doLookupRequest = mockDoLookupRequest;
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:103:34)
● AutocompleteLookupHandler › getLookupResults › with valid input passed › doLookupRequest is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
125 | };
126 |
> 127 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
128 |
129 | const mockDoLockupResolve = jest.fn();
130 | const mockDoLockupRequest = jest.fn().mockReturnValue( {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:127:34)
● AutocompleteLookupHandler › getLookupResults › with valid input passed › and no browser support for unicode regex; doLookupRequest is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
149 | };
150 |
> 151 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
152 |
153 | // Simulate regex error
154 | mockRegexMethod.mockImplementationOnce( function () {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:151:34)
● AutocompleteLookupHandler › getLookupResults › with valid input passed › getFilteredLookupResults passes due to valid result
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
178 | };
179 |
> 180 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
181 |
182 | const mockDoLockupResolve = function ( params ) {
183 | return params();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:180:34)
● AutocompleteLookupHandler › getLookupResults › with valid input passed › getFilteredLookupResults fails due to invalid result, clear lookupResults
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
209 | };
210 |
> 211 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
212 |
213 | const mockClearLookupResults = jest.fn();
214 | wrapper.vm.clearLookupResults = mockClearLookupResults;
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:211:34)
● AutocompleteLookupHandler › doLookupRequest › abort previous lookup promise if new lookup request
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
263 | };
264 |
> 265 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
266 |
267 | wrapper.vm.doLookupRequest( input );
268 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:265:33)
● AutocompleteLookupHandler › doLookupRequest › with multiple input passed as comma separated string; getLookupRequestForTerm is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
280 | };
281 |
> 282 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
283 |
284 | const mockGetLookupRequestForTermResolve = function ( paramsFunc ) {
285 | paramsFunc( {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:282:33)
● AutocompleteLookupHandler › doLookupRequest › with valid input passed and no browser support for unicode regex; getLookupRequestForTerm is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
328 | };
329 |
> 330 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
331 |
332 | mockRegexMethod.mockImplementationOnce( function () {
333 | throw new Error( '' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:330:33)
● AutocompleteLookupHandler › getLookupRequestForTerm › return empty search if lookupDisabled is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
384 | } );
385 |
> 386 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
387 |
388 | wrapper.vm.getLookupRequestForTerm( input );
389 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:386:33)
● AutocompleteLookupHandler › getLookupRequestForTerm › return search results if lookupDisabled is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
415 | } );
416 |
> 417 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
418 |
419 | wrapper.vm.getLookupRequestForTerm( input );
420 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:417:33)
● AutocompleteLookupHandler › getFilteredLookupResults › return array with length lookupResultsLimit
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
442 | };
443 |
> 444 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
445 |
446 | const res = wrapper.vm.getFilteredLookupResults( lookupResults, lookupRegex );
447 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:444:33)
● AutocompleteLookupHandler › getFilteredLookupResults › returns unique array result
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
465 | };
466 |
> 467 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
468 |
469 | const res = wrapper.vm.getFilteredLookupResults( lookupResults, lookupRegex );
470 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:467:33)
FAIL tests/jest/components/NamespaceFilterDialog.test.js
● EndOfResults › render the component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
6 | describe( 'EndOfResults', () => {
7 | it( 'render the component', () => {
> 8 | const wrapper = shallowMount( Component, {
| ^
9 | props: {
10 | items: [],
11 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:8:19)
● EndOfResults › initialRadio › returns initial value if valid
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | describe( 'initialRadio', () => {
54 | it( 'returns initial value if valid', () => {
> 55 | const wrapper = shallowMount( Component, {
| ^
56 | props: {
57 | items: [],
58 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:55:20)
● EndOfResults › initialRadio › returns custom if no initial value is provided
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
65 | } );
66 | it( 'returns custom if no initial value is provided', () => {
> 67 | const wrapper = shallowMount( Component, {
| ^
68 | props: {
69 | items: [],
70 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:67:20)
● EndOfResults › initialCustom › returns initialValue if is a custom value (number)
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
80 | describe( 'initialCustom', () => {
81 | it( 'returns initialValue if is a custom value (number)', () => {
> 82 | const wrapper = shallowMount( Component, {
| ^
83 | props: {
84 | items: [],
85 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:82:20)
● EndOfResults › initialCustom › returns array with formatted InitialValue
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
92 | } );
93 | it( 'returns array with formatted InitialValue', () => {
> 94 | const wrapper = shallowMount( Component, {
| ^
95 | props: {
96 | items: [],
97 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:94:20)
● EndOfResults › formattedNamespaces › generates label and value for namespaces
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
109 | describe( 'formattedNamespaces', () => {
110 | it( 'generates label and value for namespaces', () => {
> 111 | const wrapper = shallowMount( Component, {
| ^
112 | props: {
113 | items: [],
114 | namespaces: {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:111:20)
● EndOfResults › formattedNamespaces › default the label for a namespace with a value of 0 (blanknamespace)
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
127 | it( 'default the label for a namespace with a value of 0 (blanknamespace)', () => {
128 | global.mw.msg.mockReturnValueOnce( 'blanknamespace' );
> 129 | const wrapper = shallowMount( Component, {
| ^
130 | props: {
131 | items: [],
132 | namespaces: {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:129:20)
● EndOfResults › isCustom › return true if selectedRadio is equal to "custom"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
147 | describe( 'isCustom', () => {
148 | it( 'return true if selectedRadio is equal to "custom" ', () => {
> 149 | const wrapper = shallowMount( Component, {
| ^
150 | props: {
151 | items: [],
152 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:149:20)
● EndOfResults › disableDialogAction › return false if not custom"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
162 | describe( 'disableDialogAction', () => {
163 | it( 'return false if not custom" ', () => {
> 164 | const wrapper = shallowMount( Component, {
| ^
165 | props: {
166 | items: [],
167 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:164:20)
● EndOfResults › disableDialogAction › return false if custom and with selected values"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
174 | } );
175 | it( 'return false if custom and with selected values" ', () => {
> 176 | const wrapper = shallowMount( Component, {
| ^
177 | props: {
178 | items: [],
179 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:176:20)
● EndOfResults › disableDialogAction › return true if custom but without selected custom"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
186 | } );
187 | it( 'return true if custom but without selected custom" ', () => {
> 188 | const wrapper = shallowMount( Component, {
| ^
189 | props: {
190 | items: [],
191 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:188:20)
● EndOfResults › methods › cancel › emit a "close" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
202 | describe( 'cancel', () => {
203 | it( 'emit a "close" event', () => {
> 204 | const wrapper = shallowMount( Component, {
| ^
205 | props: {
206 | items: [],
207 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:204:21)
● EndOfResults › methods › cancel › reset selectedRadio to initialRadio
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
216 | } );
217 | it( 'reset selectedRadio to initialRadio', () => {
> 218 | const wrapper = shallowMount( Component, {
| ^
219 | props: {
220 | items: [],
221 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:218:21)
● EndOfResults › methods › cancel › reset selectedRadio to initialRadio
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
230 | } );
231 | it( 'reset selectedRadio to initialRadio', () => {
> 232 | const wrapper = shallowMount( Component, {
| ^
233 | props: {
234 | items: [],
235 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:232:21)
● EndOfResults › methods › onProgress › emit a "close" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
246 | describe( 'onProgress', () => {
247 | it( 'emit a "close" event', () => {
> 248 | const wrapper = shallowMount( Component, {
| ^
249 | props: {
250 | items: [],
251 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:248:21)
● EndOfResults › methods › onProgress › emit a "submit" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
260 | } );
261 | it( 'emit a "submit" event', () => {
> 262 | const wrapper = shallowMount( Component, {
| ^
263 | props: {
264 | items: [],
265 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:262:21)
● EndOfResults › methods › onProgress › emit a "submit" event with selectedRadio if namespace is not custom
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
274 | } );
275 | it( 'emit a "submit" event with selectedRadio if namespace is not custom', () => {
> 276 | const wrapper = shallowMount( Component, {
| ^
277 | props: {
278 | items: [],
279 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:276:21)
● EndOfResults › methods › onProgress › emit a "submit" event with selectedCustom if namespace is custom
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
289 | } );
290 | it( 'emit a "submit" event with selectedCustom if namespace is custom', () => {
> 291 | const wrapper = shallowMount( Component, {
| ^
292 | props: {
293 | items: [],
294 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:291:21)
● EndOfResults › methods › select › when value provided is part of namespaceGroups › set seletedRadio as the value provided
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
307 | describe( 'when value provided is part of namespaceGroups', () => {
308 | it( 'set seletedRadio as the value provided', () => {
> 309 | const wrapper = shallowMount( Component, {
| ^
310 | props: {
311 | items: [],
312 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:309:22)
● EndOfResults › methods › select › when value provided is part of namespaceGroups › set reset selectedCustom to initialCustom
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
321 | } );
322 | it( 'set reset selectedCustom to initialCustom', () => {
> 323 | const wrapper = shallowMount( Component, {
| ^
324 | props: {
325 | items: [],
326 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:323:22)
● EndOfResults › methods › select › when value provided is not part of namespaceGroups › set seletedRadio as "custom"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
337 | describe( 'when value provided is not part of namespaceGroups', () => {
338 | it( 'set seletedRadio as "custom"', () => {
> 339 | const wrapper = shallowMount( Component, {
| ^
340 | props: {
341 | items: [],
342 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:339:22)
● EndOfResults › methods › select › when value provided is not part of namespaceGroups › set reset selectedCustom to the formatted value provided
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
351 | } );
352 | it( 'set reset selectedCustom to the formatted value provided', () => {
> 353 | const wrapper = shallowMount( Component, {
| ^
354 | props: {
355 | items: [],
356 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:353:22)
● EndOfResults › methods › reset › reset the value of selectedRadio to initialRadio
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
371 | describe( 'reset', () => {
372 | it( 'reset the value of selectedRadio to initialRadio', () => {
> 373 | const wrapper = shallowMount( Component, {
| ^
374 | props: {
375 | items: [],
376 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:373:21)
● EndOfResults › methods › reset › reset the value of selectedCustom to initialCustom
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
385 | } );
386 | it( 'reset the value of selectedCustom to initialCustom', () => {
> 387 | const wrapper = shallowMount( Component, {
| ^
388 | props: {
389 | items: [],
390 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:387:21)
FAIL tests/jest/components/SearchResults.test.js
● SearchResults › renders child component › (based on mediatype) successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:128:20)
● SearchResults › renders child component › spinner if pending (based on mediatype) is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:141:20)
● SearchResults › renders child component › show more button if continue (based on mediatype) is truthy and pending is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:154:20)
● SearchResults › renders child component › SearchError if hasError is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:165:20)
● SearchResults › renders child component › when hasError is false › and hasNoResults is true, render NoResults Component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:182:21)
● SearchResults › renders child component › when hasError is false › and hasNoResults is false, and endOfResults is true render EndOfResults Component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:192:21)
● SearchResults › renders child component › when hasError is false › and hasNoResults is false, endOfResults is false and shouldShowEmptyState is true render EmptyState Component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:205:21)
● SearchResults › quickview › renders Dialog Component if isMobileSkin is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:222:20)
● SearchResults › quickview › renders side component if isMobileSkin is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:231:20)
● SearchResults › Computed › resultComponent › when media type is image
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:245:21)
● SearchResults › Computed › resultComponent › when media type is not image
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
251 | it( 'when media type is not image', () => {
252 |
> 253 | const wrapper = shallowMount( Component, {
| ^
254 | props: {
255 | mediaType: 'video'
256 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:253:21)
● SearchResults › Methods › showDetails › scroll to view
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:285:15)
● SearchResults › Methods › showDetails › clear details if timeout isnt cleared
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:285:15)
● SearchResults › Methods › showDetails › setDetails
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:285:15)
● SearchResults › Methods › hideDetails › return if not mediatype details
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:327:21)
● SearchResults › Methods › hideDetails › if restoreFocus is passed as true, focus on current title
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:340:21)
● SearchResults › Methods › hideDetails › if restoreFocus is passed as false, focus on current title
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:354:21)
● SearchResults › Methods › changeQuickViewResult › set focusOn to next, when shouldfocuschange is true and addend is 1
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:375:21)
● SearchResults › Methods › changeQuickViewResult › set focusOn to previous, when shouldfocuschange is true and addend is not 1
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:392:21)
● SearchResults › Methods › changeQuickViewResult › set focusOn to null, when shouldfocuschange is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:409:21)
● SearchResults › Methods › scrollIntoViewIfNeeded › return if no ref
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:428:21)
● SearchResults › Methods › scrollIntoViewIfNeeded › if bounds top or bounds bottom is < 0, scroll into view
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:438:21)
● SearchResults › Methods › scrollIntoViewIfNeeded › if bounds top or bounds bottom is > window height, scroll into view
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:451:21)
● SearchResults › Methods › onDialogKeyup › if code is ArrowRight, pass adddend as 1
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:471:21)
● SearchResults › Methods › onDialogKeyup › if code is ArrowLeft, pass adddend as -1
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:483:21)
● SearchResults › Methods › getResultStyle › if initialized is false, resultStyle is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:499:21)
● SearchResults › Methods › getResultStyle › if mediaType is not video, resultStyle is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:509:21)
● SearchResults › Methods › getResultStyle › if mediaType is video, initialized is true, and offsetWidth is zero, resultStyle is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:524:21)
● SearchResults › Methods › getDebouncedResultStyle › calls getResultStyleMock
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:538:21)
● SearchResults › watch › on currentSearchTerm › set showQuickView to false and cleardetails
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:558:21)
● SearchResults › watch › on initialized › trigger getResultStyle
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:572:21)
● SearchResults › watch › on allActiveDetails › set showQuickView to true if details has mediatype and showQuickView is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:589:21)
● SearchResults › on created › add resize event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:614:4)
● SearchResults › on destroyed › remove resize event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:625:20)
FAIL tests/jest/mixins/restoreHistoryHandler.test.js
● RestoreHistoryHandler › on normal navigation › clears stored data on load
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
28 | Performance.mockPerformanceNavigation();
29 |
> 30 | VueTestUtils.shallowMount( Component );
| ^
31 |
32 | expect( mixinsInstance.methods.clearStoredPageState ).toHaveBeenCalled();
33 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:30:17)
● RestoreHistoryHandler › on normal navigation › does not restore page state
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 | };
45 |
> 46 | VueTestUtils.shallowMount( Component );
| ^
47 |
48 | expect( mixinsInstance.methods.restorePageState ).not.toHaveBeenCalled();
49 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:46:17)
● RestoreHistoryHandler › on back navigation › does not restore data if it does not have stashed data
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
62 | };
63 |
> 64 | VueTestUtils.shallowMount( Component );
| ^
65 |
66 | expect( mixinsInstance.methods.restorePageState ).not.toHaveBeenCalled();
67 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:64:17)
● RestoreHistoryHandler › on back navigation › when perf.navigationEntry is supported › restores page state if stored data exists and perf.navigationEntry says that user is back-navigating
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
80 | };
81 |
> 82 | VueTestUtils.shallowMount( Component );
| ^
83 |
84 | expect( mixinsInstance.methods.restorePageState ).toHaveBeenCalled();
85 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:82:18)
● RestoreHistoryHandler › on back navigation › when perf.navigationEntry is not supported › restores page state if stored data exists and deprecated performance.navigation.type is 2
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
99 | };
100 |
> 101 | VueTestUtils.shallowMount( Component );
| ^
102 |
103 | expect( mixinsInstance.methods.restorePageState ).toHaveBeenCalled();
104 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:101:18)
● RestoreHistoryHandler › on created › add popstate event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
114 | };
115 |
> 116 | VueTestUtils.shallowMount( Component );
| ^
117 |
118 | expect( window.addEventListener ).toHaveBeenCalled();
119 | expect( window.addEventListener.mock.calls[ 0 ][ 0 ] ).toBe( 'popstate' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:116:17)
● RestoreHistoryHandler › on created › add pagehide event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
126 | };
127 |
> 128 | VueTestUtils.shallowMount( Component );
| ^
129 |
130 | expect( window.addEventListener ).toHaveBeenCalled();
131 | expect( window.addEventListener.mock.calls[ 1 ][ 0 ] ).toBe( 'pagehide' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:128:17)
● RestoreHistoryHandler › onPageHide › when loading from cache › stored data is cleared
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
145 | };
146 |
> 147 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
148 |
149 | wrapper.vm.onPageHide( event );
150 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:147:34)
● RestoreHistoryHandler › onPageHide › when not loading from cache › stash page when event is not persisted
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
165 | };
166 |
> 167 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
168 | wrapper.vm.onPageHide( event );
169 |
170 | expect( mixinsInstance.methods.stashPageState ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:167:34)
● RestoreHistoryHandler › onPopState › it does not restore data when state is not passed as argument
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
193 | };
194 |
> 195 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
196 | wrapper.vm.onPopState( event );
197 |
198 | expect( mixinsInstance.methods.setSearchTerm ).not.toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:195:33)
● RestoreHistoryHandler › onPopState › it setSearchTerm using the event search paramether
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
212 | };
213 |
> 214 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
215 | wrapper.vm.onPopState( event );
216 |
217 | expect( mixinsInstance.methods.setSearchTerm ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:214:33)
● RestoreHistoryHandler › onPopState › it set currentType using the event type paramether
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
232 | };
233 |
> 234 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
235 | wrapper.vm.onPopState( event );
236 |
237 | expect( mixinsInstance.methods.updateCurrentType ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:234:33)
● RestoreHistoryHandler › onPopState › it clear lookup result if term is empty string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
255 | };
256 |
> 257 | const wrapper = VueTestUtils.shallowMount( Component,
| ^
258 | {
259 | propsData: {
260 | currentSearchTerm: ''
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:257:33)
● RestoreHistoryHandler › onPopState › it reset result if term is empty string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
287 | };
288 |
> 289 | const wrapper = VueTestUtils.shallowMount( Component,
| ^
290 | {
291 | propsData: {
292 | currentSearchTerm: ''
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:289:33)
● RestoreHistoryHandler › onPopState › resetFilters
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
316 | };
317 |
> 318 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
319 | wrapper.vm.onPopState( event );
320 |
321 | expect( mixinsInstance.methods.resetFilters ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:318:33)
● RestoreHistoryHandler › onPopState › clearFilterQueryParams
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
335 | };
336 |
> 337 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
338 | wrapper.vm.onPopState( event );
339 |
340 | expect( mixinsInstance.methods.clearFilterQueryParams ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:337:33)
● RestoreHistoryHandler › on unmount › remove the popstate event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
354 | };
355 |
> 356 | const wrapper = VueTestUtils.shallowMount( Component, {
| ^
357 | propsData: {
358 | currentType: 'dummy',
359 | term: 'dummy'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:356:33)
● RestoreHistoryHandler › on mounted › triggers replaceQueryToHistoryState
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
376 | };
377 |
> 378 | VueTestUtils.shallowMount( Component );
| ^
379 |
380 | expect( mixinsInstance.methods.replaceQueryToHistoryState ).toHaveBeenCalled();
381 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:378:17)
PASS tests/jest/components/base/autocompleteSearchInput.test.js
FAIL tests/jest/mixins/observer.test.js
● Observer › check if IntersectObserver feature is set on mount
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 | };
18 | const spySupportsObserverCheck = jest.spyOn( observerInstance.methods, 'supportsObserverCheck' );
> 19 | VueTestUtils.shallowMount( Component );
| ^
20 |
21 | expect( spySupportsObserverCheck ).toHaveBeenCalled();
22 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:19:16)
● Observer › when IntersectionObserver is not supported › set observerSupported to false if feature is not supported
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
30 | };
31 |
> 32 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
33 | expect( wrapper.vm.observerSupported ).toBe( false );
34 | } );
35 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:32:33)
● Observer › when IntersectionObserver is not supported › does not calls the IntersectionObserver API
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
40 | };
41 |
> 42 | VueTestUtils.shallowMount( Component );
| ^
43 |
44 | expect( window.IntersectionObserver ).not.toHaveBeenCalled();
45 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:42:17)
● Observer › when IntersectionObserver is not supported › calls disconnectObserver method when component is destroyed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | observerInstance.methods.disconnectObserver = jest.fn();
54 |
> 55 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
56 | wrapper.unmount();
57 |
58 | expect( observerInstance.methods.disconnectObserver ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:55:33)
● Observer › when IntersectionObserver is not supported › does not trigger the observer.disconnect method when destroyed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
65 | };
66 |
> 67 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
68 | wrapper.unmount();
69 |
70 | expect( IntersectionObserverSpies.disconnect ).not.toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:67:33)
● Observer › when IntersectionObserver is supported › set observerSupported to true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
82 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( true );
83 |
> 84 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
85 |
86 | expect( observerInstance.methods.supportsObserverCheck ).toHaveBeenCalled();
87 | expect( wrapper.vm.observerSupported ).toBe( true );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:84:33)
● Observer › when IntersectionObserver is supported › calls the IntersectionObserver API
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
97 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( true );
98 |
> 99 | VueTestUtils.shallowMount( Component );
| ^
100 |
101 | expect( window.IntersectionObserver ).toHaveBeenCalled();
102 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:99:17)
● Observer › when IntersectionObserver is supported › define the observerElement
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
111 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( true );
112 |
> 113 | VueTestUtils.shallowMount( Component );
| ^
114 |
115 | Vue.nextTick().then( () => {
116 | expect( observerInstance.methods.defineObserverElement ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:113:17)
● Observer › when IntersectionObserver is supported › triggers the observation with the defined element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
129 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( mockSelector );
130 |
> 131 | VueTestUtils.shallowMount( Component );
| ^
132 |
133 | Vue.nextTick().then( () => {
134 | expect( IntersectionObserverSpies.observe ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:131:17)
● Observer › when IntersectionObserver is supported › trigger the observer.disconnect method when destroyed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
148 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( mockSelector );
149 |
> 150 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
151 |
152 | Vue.nextTick().then( () => {
153 | wrapper.unmount();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:150:33)
● Observer › when intersectionCallback is triggered › triggers a change event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
169 | ];
170 |
> 171 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
172 | wrapper.vm.intersectionCallback( mockCallbackArgument );
173 |
174 | expect( wrapper.emitted().change ).toBeTruthy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:171:33)
● Observer › when intersectionCallback is triggered › triggers an "hide" event, when method called with a falsy isIntersecting
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
184 | ];
185 |
> 186 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
187 | wrapper.vm.intersectionCallback( mockCallbackArgument );
188 |
189 | expect( wrapper.emitted().hide ).toBeTruthy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:186:33)
● Observer › when intersectionCallback is triggered › set the observerIntersecting data to "false" when value isIntersecting is falsy
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
199 | ];
200 |
> 201 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
202 | wrapper.vm.intersectionCallback( mockCallbackArgument );
203 |
204 | expect( wrapper.vm.observerIntersecting ).toBeFalsy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:201:33)
● Observer › when intersectionCallback is triggered › triggers an "intersect" event, when method called with isIntersecting
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
214 | ];
215 |
> 216 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
217 | wrapper.vm.intersectionCallback( mockCallbackArgument );
218 |
219 | expect( wrapper.emitted().intersect ).toBeTruthy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:216:33)
● Observer › when intersectionCallback is triggered › set the observerIntersecting data to "true" when value isIntersecting is truthy
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
229 | ];
230 |
> 231 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
232 | wrapper.vm.intersectionCallback( mockCallbackArgument );
233 |
234 | expect( wrapper.vm.observerIntersecting ).toBeTruthy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:231:33)
FAIL tests/jest/components/base/select.test.js
● Select › when interacting with the dropdown › it toggle menu off when activeItemIndex is empty and showMenu is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
320 |
321 | const initialSelectionIndex = -1;
> 322 | const wrapper = VueTestUtils.shallowMount( Select, {
| ^
323 | propsData: {
324 | name: 'fruits',
325 | label: 'select a fruit',
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/select.test.js:322:33)
● Select › when interacting with the dropdown › emits "select" when activeItemIndex is empty and showMenu is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
350 |
351 | const initialSelectionIndex = 2;
> 352 | const wrapper = VueTestUtils.shallowMount( Select, {
| ^
353 | propsData: {
354 | name: 'fruits',
355 | label: 'select a fruit',
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/select.test.js:352:33)
PASS tests/jest/store/store.test.js
FAIL tests/jest/components/app.test.js
● Console
console.warn
[Vue warn]: (deprecation CONFIG_WHITESPACE) Vue 3 compiler's whitespace option will default to "condense" instead of "preserve". To suppress this warning, provide an explicit value for `config.compilerOptions.whitespace`.
at <Anonymous active="dummyTab1" onTabChange=fn<bound onTabChange> >
at <MediaSearch ref="VTU_COMPONENT" >
at <VTUROOT>
at warn$1 (node_modules/@vue/compat/dist/vue.cjs.js:1759:17)
at warnDeprecation (node_modules/@vue/compat/dist/vue.cjs.js:2663:5)
at compileToFunction (node_modules/@vue/compat/dist/vue.cjs.js:21912:9)
at finishComponentSetup (node_modules/@vue/compat/dist/vue.cjs.js:10741:36)
at setupStatefulComponent (node_modules/@vue/compat/dist/vue.cjs.js:10656:9)
at setupComponent (node_modules/@vue/compat/dist/vue.cjs.js:10578:11)
at mountComponent (node_modules/@vue/compat/dist/vue.cjs.js:8848:13)
at processComponent (node_modules/@vue/compat/dist/vue.cjs.js:8819:17)
console.error
^ The above deprecation's compat behavior is disabled and will likely lead to runtime errors.
at warnDeprecation (node_modules/@vue/compat/dist/vue.cjs.js:2665:17)
at compileToFunction (node_modules/@vue/compat/dist/vue.cjs.js:21912:9)
at finishComponentSetup (node_modules/@vue/compat/dist/vue.cjs.js:10741:36)
at setupStatefulComponent (node_modules/@vue/compat/dist/vue.cjs.js:10656:9)
at setupComponent (node_modules/@vue/compat/dist/vue.cjs.js:10578:11)
at mountComponent (node_modules/@vue/compat/dist/vue.cjs.js:8848:13)
at processComponent (node_modules/@vue/compat/dist/vue.cjs.js:8819:17)
at patch (node_modules/@vue/compat/dist/vue.cjs.js:8421:21)
● App › on filter change › hides the details of the changed tab
TypeError: (((cov_2f0nkwwdb0(...).b[0][0]++) , this.$refs[data.mediaType][0]) || ((cov_2f0nkwwdb0(...).b[0][1]++) , this.$refs[data.mediaType])).hideDetails is not a function
111 | mixins: [
112 | autocompleteLookupHandler,
> 113 | restoreHistoryHandler
| ^
114 | ],
115 |
116 | // The App.vue file contains no local state. An empty object is returned as
at Proxy.onFilterChange (resources/components/App.vue:113:69)
at Object.<anonymous> (tests/jest/components/app.test.js:248:15)
● App › on filter change › update the query parameter
TypeError: (((cov_2f0nkwwdb0(...).b[0][0]++) , this.$refs[data.mediaType][0]) || ((cov_2f0nkwwdb0(...).b[0][1]++) , this.$refs[data.mediaType])).hideDetails is not a function
111 | mixins: [
112 | autocompleteLookupHandler,
> 113 | restoreHistoryHandler
| ^
114 | ],
115 |
116 | // The App.vue file contains no local state. An empty object is returned as
at Proxy.onFilterChange (resources/components/App.vue:113:69)
at Object.<anonymous> (tests/jest/components/app.test.js:248:15)
● App › on filter change › update history state
TypeError: (((cov_2f0nkwwdb0(...).b[0][0]++) , this.$refs[data.mediaType][0]) || ((cov_2f0nkwwdb0(...).b[0][1]++) , this.$refs[data.mediaType])).hideDetails is not a function
111 | mixins: [
112 | autocompleteLookupHandler,
> 113 | restoreHistoryHandler
| ^
114 | ],
115 |
116 | // The App.vue file contains no local state. An empty object is returned as
at Proxy.onFilterChange (resources/components/App.vue:113:69)
at Object.<anonymous> (tests/jest/components/app.test.js:248:15)
PASS tests/jest/components/SearchFilters.test.js
FAIL tests/jest/components/results/pageResult.test.js
● PageResult › renders an heading with displayName
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
46 |
47 | it( 'renders an heading with displayName', () => {
> 48 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
49 | props: {
50 | title: sampleResult.title,
51 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:48:32)
● PageResult › renders a snippets as HTML
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
60 | it( 'renders a snippets as HTML', () => {
61 | const dummyHtmlSnippet = '<div class="dummy_snippet"></div>';
> 62 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
63 | props: {
64 | title: sampleResult.title,
65 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:62:32)
● PageResult › renders category text when categoryInfo is available
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
73 |
74 | it( 'renders category text when categoryInfo is available', () => {
> 75 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
76 | props: {
77 | title: sampleResultWithCategoryInfo.title,
78 | index: sampleResultWithCategoryInfo.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:75:32)
● PageResult › renders size text when value available
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
86 |
87 | it( 'renders size text when value available', () => {
> 88 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
89 | props: {
90 | title: sampleResult.title,
91 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:88:32)
● PageResult › renders wordcount text when value available
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
99 |
100 | it( 'renders wordcount text when value available', () => {
> 101 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
102 | props: {
103 | title: sampleResult.title,
104 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:101:32)
● PageResult › contains a link element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
112 |
113 | it( 'contains a link element', () => {
> 114 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
115 | props: {
116 | title: sampleResult.title,
117 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:114:32)
● PageResult › clicking the link element causes a "click" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
124 |
125 | it( 'clicking the link element causes a "click" event to be fired', () => {
> 126 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
127 | props: {
128 | title: sampleResult.title,
129 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:126:32)
FAIL tests/jest/components/results/ImageResult.test.js
● ImageResult › contains an Image component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 |
45 | it( 'contains an Image component', () => {
> 46 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
47 | props: {
48 | title: sampleResult.title,
49 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:46:32)
● ImageResult › calculates its own "width" style rule based on result thumbnail dimensions
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
60 |
61 | it( 'calculates its own "width" style rule based on result thumbnail dimensions', () => {
> 62 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
63 | props: {
64 | title: sampleResult.title,
65 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:62:32)
● ImageResult › applies a portrait class if the aspect ratio is greater than one
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
76 |
77 | it( 'applies a portrait class if the aspect ratio is greater than one', () => {
> 78 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
79 | props: {
80 | title: sampleResult.title,
81 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:78:32)
● ImageResult › contains a link element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
95 |
96 | it( 'contains a link element', () => {
> 97 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
98 | props: {
99 | title: sampleResult.title,
100 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:97:32)
● ImageResult › clicking the link element causes a "show-details" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
110 |
111 | it( 'clicking the link element causes a "show-details" event to be fired', done => {
> 112 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
113 | props: {
114 | title: sampleResult.title,
115 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:112:32)
● ImageResult › the "show-details" event includes the result title in its payload
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
129 |
130 | it( 'the "show-details" event includes the result title in its payload', done => {
> 131 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
132 | props: {
133 | title: sampleResult.title,
134 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:131:32)
FAIL tests/jest/components/results/otherResult.test.js
● OtherResult › renders two link elements
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
42 |
43 | it( 'renders two link elements', () => {
> 44 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
45 | props: {
46 | title: sampleResult.title,
47 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:44:32)
● OtherResult › renders a sdms-image component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
56 |
57 | it( 'renders a sdms-image component', () => {
> 58 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
59 | props: {
60 | title: sampleResult.title,
61 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:58:32)
● OtherResult › clicking the thumbnail wrapper link element causes a "click" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
69 |
70 | it( 'clicking the thumbnail wrapper link element causes a "click" event to be fired', () => {
> 71 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
72 | props: {
73 | title: sampleResult.title,
74 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:71:32)
● OtherResult › renders an heading element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
82 |
83 | it( 'renders an heading element', () => {
> 84 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
85 | props: {
86 | title: sampleResult.title,
87 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:84:32)
● OtherResult › clicking the heading link element causes a "click" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
95 |
96 | it( 'clicking the heading link element causes a "click" event to be fired', () => {
> 97 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
98 | props: {
99 | title: sampleResult.title,
100 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:97:32)
FAIL tests/jest/components/results/videoResult.test.js
● VideoResult › contains an element displaying a formattedDuration
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 |
45 | it( 'contains an element displaying a formattedDuration', () => {
> 46 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
47 | props: {
48 | title: sampleResult.title,
49 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:46:32)
● VideoResult › contains an image element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
59 |
60 | it( 'contains an image element', () => {
> 61 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
62 | props: {
63 | title: sampleResult.title,
64 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:61:32)
● VideoResult › contains an element containing a mime type
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
74 |
75 | it( 'contains an element containing a mime type', () => {
> 76 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
77 | props: {
78 | title: sampleResult.title,
79 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:76:32)
● VideoResult › contains a link element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
89 |
90 | it( 'contains a link element', () => {
> 91 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
92 | props: {
93 | title: sampleResult.title,
94 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:91:32)
● VideoResult › clicking the link element causes a "show-details" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
104 |
105 | it( 'clicking the link element causes a "show-details" event to be fired', done => {
> 106 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
107 | props: {
108 | title: sampleResult.title,
109 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:106:32)
● VideoResult › the "show-details" event includes the result title in its payload
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
123 |
124 | it( 'the "show-details" event includes the result title in its payload', done => {
> 125 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
126 | props: {
127 | title: sampleResult.title,
128 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:125:32)
PASS tests/jest/components/base/selectMenu.test.js
FAIL tests/jest/components/results/audioResult.test.js
● AudioResult › contains an element displaying a formattedDuration
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 |
45 | it( 'contains an element displaying a formattedDuration', () => {
> 46 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
47 | propsData: {
48 | title: sampleResult.title,
49 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:46:32)
● AudioResult › contains an element containing a mime type
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
59 |
60 | it( 'contains an element containing a mime type', () => {
> 61 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
62 | propsData: {
63 | title: sampleResult.title,
64 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:61:32)
● AudioResult › contains a link element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
74 |
75 | it( 'contains a link element', () => {
> 76 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
77 | propsData: {
78 | title: sampleResult.title,
79 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:76:32)
● AudioResult › clicking the link element causes a "show-details" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
89 |
90 | it( 'clicking the link element causes a "show-details" event to be fired', done => {
> 91 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
92 | propsData: {
93 | title: sampleResult.title,
94 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:91:32)
● AudioResult › the "show-details" event includes the result title in its payload
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
108 |
109 | it( 'the "show-details" event includes the result title in its payload', done => {
> 110 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
111 | propsData: {
112 | title: sampleResult.title,
113 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:110:32)
FAIL tests/jest/components/base/dialog.test.js
● Dialog Component › Renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
5 | describe( 'Dialog Component', () => {
6 | it( 'Renders successfully', () => {
> 7 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
8 | propsData: {
9 | active: false
10 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:7:32)
● Dialog Component › dialog container is not rendered
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
16 |
17 | it( 'dialog container is not rendered', () => {
> 18 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
19 | propsData: {
20 | active: false
21 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:18:32)
● Dialog Component › dialog container is rendered
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
27 |
28 | it( 'dialog container is rendered', () => {
> 29 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
30 | propsData: {
31 | active: true
32 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:29:32)
● Dialog Component › triggers close on keydown escape
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
38 |
39 | it( 'triggers close on keydown escape', ( done ) => {
> 40 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
41 | propsData: {
42 | active: true
43 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:40:32)
● Dialog Component › triggers "key" event to be fired when keyboard is clicked
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
54 |
55 | it( 'triggers "key" event to be fired when keyboard is clicked', ( done ) => {
> 56 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
57 | propsData: {
58 | active: true
59 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:56:32)
● Dialog Component › destroys and removes all added class from document body
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
72 | document.body.classList.remove = jest.fn();
73 | document.body.removeChild = jest.fn();
> 74 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
75 | propsData: {
76 | active: true
77 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:74:32)
FAIL tests/jest/components/base/icon.test.js
● Icon Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
5 | describe( 'Icon Component', () => {
6 | it( 'renders successfully', () => {
> 7 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
8 | propsData: {
9 | icon: icons.sdIconAlert
10 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:7:32)
● Icon Component › icon is filled with iconColor prop value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 | it( 'icon is filled with iconColor prop value', () => {
18 | const color = '#000000';
> 19 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
20 | propsData: {
21 | icon: icons.sdIconAlert,
22 | iconColor: color
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:19:32)
● Icon Component › renders path if icon is string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
31 | it( 'renders path if icon is string', () => {
32 |
> 33 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
34 | propsData: {
35 | icon: icons.sdIconAlert,
36 | iconTitle: 'Alert Icon'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:33:32)
● Icon Component › renders path if icon is an object containing path
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
48 | path: icons.sdIconAlert
49 | };
> 50 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
51 | propsData: {
52 | icon: iconElement,
53 | iconTitle: 'Alert Icon'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:50:32)
● Icon Component › renders rtl as path if icon is an object that contains rtl and document.documentElement.dir is rtl
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
68 | };
69 |
> 70 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
71 | propsData: {
72 | icon: iconElement
73 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:70:32)
● Icon Component › renders ltr if icon shouldFlipExceptions contains langCode
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
88 | };
89 |
> 90 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
91 | propsData: {
92 | icon: iconElement,
93 | langCode: 'en'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:90:32)
● Icon Component › renders langCodeMap langCode path string if langCodeMap object contains langCode
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
111 | };
112 |
> 113 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
114 | propsData: {
115 | icon: iconElement,
116 | langCode: 'en'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:113:32)
● Icon Component › renders default if passed in icon object and document.documentElement.dir is not rtl
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
130 | };
131 |
> 132 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
133 | propsData: {
134 | icon: iconElement
135 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:132:32)
● Icon Component › should flip if shouldflip is passed in icon object
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
147 | path: icons.sdIconAlert
148 | };
> 149 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
150 | propsData: {
151 | icon: iconElement,
152 | iconTitle: 'Alert Icon'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:149:32)
PASS tests/jest/store/getters.test.js
FAIL tests/jest/components/base/copyTextLayout.test.js
● SdCopyTextLayout Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
9 | describe( 'SdCopyTextLayout Component', () => {
10 | it( 'renders successfully', () => {
> 11 | const wrapper = VueTestUtils.shallowMount( CopyTextLayout, {
| ^
12 | propsData: {
13 | copyText: sampleTest
14 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/copyTextLayout.test.js:11:32)
● SdCopyTextLayout Component › text is same as text passed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
20 |
21 | it( 'text is same as text passed', () => {
> 22 | const wrapper = VueTestUtils.shallowMount( CopyTextLayout, {
| ^
23 | propsData: {
24 | copyText: sampleTest
25 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/copyTextLayout.test.js:22:32)
● SdCopyTextLayout Component › overflow is hidden if hideOverflow is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
99 |
100 | it( 'overflow is hidden if hideOverflow is passed as true', () => {
> 101 | const wrapper = VueTestUtils.shallowMount( CopyTextLayout, {
| ^
102 | propsData: {
103 | copyText: sampleTest,
104 | hideOverflow: true
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/copyTextLayout.test.js:101:32)
● SdCopyTextLayout Component › is inline if inline is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
110 |
111 | it( 'is inline if inline is passed as true', () => {
> 112 | const wrapper = VueTestUtils.shallowMount( CopyTextLayout, {
| ^
113 | propsData: {
114 | copyText: sampleTest,
115 | inline: true
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/copyTextLayout.test.js:112:32)
FAIL tests/jest/components/UserNotice.test.js
● UserNotice › renders › the parent component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
14 | describe( 'renders ', () => {
15 | it( 'the parent component', () => {
> 16 | const wrapper = shallowMount( Component );
| ^
17 | const element = wrapper.find( '.sdms-user-notice__message' );
18 | expect( element.exists() ).toBe( true );
19 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:16:20)
● UserNotice › renders › a message component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 |
27 | it( 'a message component', () => {
> 28 | const wrapper = shallowMount( Component );
| ^
29 | const innerComponent = wrapper.findComponent( Message );
30 | expect( innerComponent.exists() ).toBe( true );
31 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:28:20)
● UserNotice › does not render the component › when user is on mobile skin
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
37 | .calledWith( 'skin' )
38 | .mockReturnValueOnce( 'minerva' );
> 39 | const wrapper = shallowMount( Component );
| ^
40 | const element = wrapper.find( '.sdms-user-notice__message' );
41 | expect( element.exists() ).toBe( false );
42 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:39:20)
● UserNotice › does not render the component › when user is Anon
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 | it( 'when user is Anon', () => {
45 | global.mw.user.isAnon.mockReturnValueOnce( true );
> 46 | const wrapper = shallowMount( Component );
| ^
47 | const element = wrapper.find( '.sdms-user-notice__message' );
48 | expect( element.exists() ).toBe( false );
49 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:46:20)
● UserNotice › does not render the component › when notice previously dismissed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | .calledWith( 'sdms-search-user-notice-dismissed' )
54 | .mockReturnValueOnce( 1 );
> 55 | const wrapper = shallowMount( Component );
| ^
56 | const element = wrapper.find( '.sdms-user-notice__message' );
57 | expect( element.exists() ).toBe( false );
58 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:55:20)
● UserNotice › does not render the component › when notice dismissed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
59 |
60 | it( 'when notice dismissed', ( done ) => {
> 61 | const wrapper = shallowMount( Component );
| ^
62 | wrapper.setData( { dismissed: true } );
63 | wrapper.vm.$nextTick( () => {
64 | const element = wrapper.find( '.sdms-user-notice__message' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:61:20)
● UserNotice › on dismiss button click › sends saveOption to the api
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
71 | describe( 'on dismiss button click', () => {
72 | it( 'sends saveOption to the api', () => {
> 73 | const wrapper = shallowMount( Component );
| ^
74 | wrapper.vm.dismiss();
75 | expect( global.mw.Api.prototype.saveOption ).toHaveBeenCalled();
76 | expect( global.mw.Api.prototype.saveOption ).toHaveBeenCalledWith( 'sdms-search-user-notice-dismissed', 1 );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:73:20)
● UserNotice › on dismiss button click › saves options to user object
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
78 |
79 | it( 'saves options to user object', () => {
> 80 | const wrapper = shallowMount( Component );
| ^
81 | wrapper.vm.dismiss();
82 | expect( global.mw.user.options.set ).toHaveBeenCalled();
83 | expect( global.mw.user.options.set ).toHaveBeenCalledWith( 'sdms-search-user-notice-dismissed', 1 );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:80:20)
● UserNotice › on dismiss button click › changes dismissed data
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
85 |
86 | it( 'changes dismissed data', () => {
> 87 | const wrapper = shallowMount( Component );
| ^
88 | wrapper.vm.dismiss();
89 | expect( wrapper.vm.dismissed ).toBeTruthy();
90 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:87:20)
FAIL tests/jest/components/base/button.test.js
● Button Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
10 | it( 'renders successfully', () => {
11 |
> 12 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
13 | propsData: {
14 | disabled: false,
15 | frameless: true,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:12:32)
● Button Component › click causes a "click" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 | it( 'click causes a "click" event to be fired', done => {
27 |
> 28 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
29 | propsData: {
30 | disabled: false,
31 | frameless: true,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:28:32)
● Button Component › is framed if frameless is passed as false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
45 | it( 'is framed if frameless is passed as false', () => {
46 |
> 47 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
48 | propsData: {
49 | frameless: false
50 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:47:32)
● Button Component › is disabled if disabled is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
57 | it( 'is disabled if disabled is passed as true', () => {
58 |
> 59 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
60 | propsData: {
61 | disabled: true
62 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:59:32)
● Button Component › is progressive if progressive is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
69 | it( 'is progressive if progressive is passed as true', () => {
70 |
> 71 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
72 | propsData: {
73 | progressive: true
74 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:71:32)
● Button Component › is destructive if destructive is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
81 | it( 'is destructive if destructive is passed as true', () => {
82 |
> 83 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
84 | propsData: {
85 | destructive: true
86 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:83:32)
● Button Component › is primary if primary is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
93 | it( 'is primary if primary is passed as true', () => {
94 |
> 95 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
96 | propsData: {
97 | primary: true
98 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:95:32)
● Button Component › has invisible text if invisibleText is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
104 | it( 'has invisible text if invisibleText is passed as true', () => {
105 |
> 106 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
107 | propsData: {
108 | invisibleText: true
109 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:106:32)
● Button Component › has icon if icon is passed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
116 | it( 'has icon if icon is passed', () => {
117 |
> 118 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
119 | propsData: {
120 | icon: icons.sdIconAlert
121 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:118:32)
FAIL tests/jest/components/base/image.test.js
● Image Component › Renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 |
18 | it( 'Renders successfully', () => {
> 19 | const wrapper = VueTestUtils.shallowMount( Image, {
| ^
20 | propsData: samplePropsData
21 | } );
22 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/image.test.js:19:32)
● Image Component › width and height style match props
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
29 |
30 | const propsData = { source: samplePropsData.source, alt: samplePropsData.alt, originalWidth: 200, originalHeight: 200 };
> 31 | const wrapper = VueTestUtils.shallowMount( Image, {
| ^
32 | propsData
33 | } );
34 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/image.test.js:31:32)
● Image Component › source is set immediately if observer is not supported
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 |
45 | it( 'source is set immediately if observer is not supported', () => {
> 46 | const wrapper = VueTestUtils.shallowMount( Image, {
| ^
47 | propsData: samplePropsData
48 | } );
49 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/image.test.js:46:32)
● Image Component › source is set when observerIntersecting is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
76 |
77 | it( 'source is set when observerIntersecting is true', () => {
> 78 | const wrapper = VueTestUtils.shallowMount( Image, {
| ^
79 | propsData: samplePropsData
80 | } );
81 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/image.test.js:78:32)
FAIL tests/jest/components/base/message.test.js
● Message Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
8 | it( 'renders successfully', () => {
9 |
> 10 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
11 | propsData: {}
12 | } );
13 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:10:32)
● Message Component › renders inline if inline is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
21 | it( 'renders inline if inline is true', () => {
22 |
> 23 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
24 | propsData: {
25 | inline: true
26 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:23:32)
● Message Component › renders icon successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
34 | it( 'renders icon successfully', () => {
35 |
> 36 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
37 | propsData: {}
38 | } );
39 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:36:32)
● Message Component › renders message › notice, if type is not passed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
46 | it( 'notice, if type is not passed', () => {
47 |
> 48 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
49 | propsData: {}
50 | } );
51 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:48:33)
● Message Component › renders message › notice, if type is passed as "notice"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
57 |
58 | const type = 'notice';
> 59 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
60 | propsData: {
61 | type
62 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:59:33)
● Message Component › renders message › warning, if type is passed as "warning"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
70 |
71 | const type = 'warning';
> 72 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
73 | propsData: {
74 | type
75 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:72:33)
● Message Component › renders message › error, if type is passed as "error"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
83 |
84 | const type = 'error';
> 85 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
86 | propsData: {
87 | type
88 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:85:33)
● Message Component › renders message › success, if type is passed as "success"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
96 |
97 | const type = 'success';
> 98 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
99 | propsData: {
100 | type
101 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:98:33)
FAIL tests/jest/components/base/checkbox.test.js
● Checkbox Component › Renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
7 |
8 | it( 'Renders successfully', () => {
> 9 | const wrapper = VueTestUtils.shallowMount( Checkbox, {
| ^
10 | propsData: {
11 | disabled: false,
12 | modelValue: true
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/checkbox.test.js:9:32)
● Checkbox Component › is disabled if disabled is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
19 |
20 | it( 'is disabled if disabled is passed as true', () => {
> 21 | const wrapper = VueTestUtils.shallowMount( Checkbox, {
| ^
22 | propsData: {
23 | disabled: true,
24 | modelValue: true
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/checkbox.test.js:21:32)
FAIL tests/jest/components/base/player.test.js
● Player Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 | it( 'renders successfully', () => {
27 |
> 28 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
29 | propsData: {}
30 | } );
31 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:28:32)
● Player Component › renders src as "fallbackUrl"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
39 |
40 | const fallbackUrl = 'testurl';
> 41 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
42 | propsData: {
43 | fallbackUrl
44 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:41:32)
● Player Component › renders poster as "options.poster"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
55 | poster: 'Cat Video'
56 | };
> 57 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
58 | propsData: {
59 | options
60 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:57:32)
● Player Component › emits "play" event when onPlay is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
68 | it( 'emits "play" event when onPlay is called ', () => {
69 |
> 70 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
71 | propsData: { }
72 | } );
73 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:70:32)
● Player Component › calls player dispose method when component is destroyed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
81 |
82 | const mockPlayerDispose = jest.fn();
> 83 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
84 | propsData: { }
85 | } );
86 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:83:32)
FAIL tests/jest/components/DidYouMean.test.js
● DidYoumean › Does not render DidYouMean component if state if empty
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
36 |
37 | it( 'Does not render DidYouMean component if state if empty', () => {
> 38 | const wrapper = shallowMount( Component, {
| ^
39 | global: {
40 | plugins: [ store ]
41 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/DidYouMean.test.js:38:19)
FAIL tests/jest/components/base/radio.test.js
● Radio Component › Renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
6 |
7 | it( 'Renders successfully', () => {
> 8 | const wrapper = VueTestUtils.shallowMount( Radio, {
| ^
9 | propsData: {
10 | name: 'demo'
11 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/radio.test.js:8:32)
● Radio Component › renders the name property
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 |
18 | it( 'renders the name property', () => {
> 19 | const wrapper = VueTestUtils.shallowMount( Radio, {
| ^
20 | propsData: {
21 | disabled: true,
22 | name: 'demo'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/radio.test.js:19:32)
● Radio Component › is disabled if disabled is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
29 |
30 | it( 'is disabled if disabled is passed as true', () => {
> 31 | const wrapper = VueTestUtils.shallowMount( Radio, {
| ^
32 | propsData: {
33 | disabled: true,
34 | name: 'demo'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/radio.test.js:31:32)
● Radio Component › keydown causes a "click" event to be called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
42 |
43 | it( 'keydown causes a "click" event to be called', () => {
> 44 | const wrapper = VueTestUtils.shallowMount( Radio, {
| ^
45 | propsData: {
46 | value: true
47 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/radio.test.js:44:32)
FAIL tests/jest/components/NoResults.test.js
● Test suite failed to run
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
3 |
4 | describe( 'NoResults', () => {
> 5 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
6 |
7 | it( 'render the component', () => {
8 | const element = wrapper.find( '.sdms-no-results' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at tests/jest/components/NoResults.test.js:5:31
at Object.<anonymous> (tests/jest/components/NoResults.test.js:4:1)
FAIL tests/jest/components/EndOfResults.test.js
● Test suite failed to run
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
3 |
4 | describe( 'EndOfResults', () => {
> 5 | const wrapper = shallowMount( Component );
| ^
6 |
7 | it( 'render the component', () => {
8 | const element = wrapper.find( '.sdms-end-of-results' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at tests/jest/components/EndOfResults.test.js:5:18
at Object.<anonymous> (tests/jest/components/EndOfResults.test.js:4:1)
FAIL tests/jest/components/EmptyState.test.js
● EmptyState › Does not render the component if sdmsTotalSiteImages is 0
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 | it( 'Does not render the component if sdmsTotalSiteImages is 0', () => {
18 | defineComponent( 0 );
> 19 | const wrapper = shallowMount( component );
| ^
20 | const element = wrapper.find( '.sdms-empty-state' );
21 | expect( element.exists() ).toBe( false );
22 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/EmptyState.test.js:19:19)
● EmptyState › when sdmsTotalSiteImages is greater than 0 › render the component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 | it( 'render the component', () => {
27 | defineComponent( 1 );
> 28 | const wrapper = shallowMount( component );
| ^
29 | const element = wrapper.find( '.sdms-empty-state' );
30 | expect( element.exists() ).toBe( true );
31 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/EmptyState.test.js:28:20)
● EmptyState › when sdmsTotalSiteImages is greater than 0 › render empty state icon
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
33 | it( 'render empty state icon', () => {
34 | defineComponent( 1 );
> 35 | const wrapper = shallowMount( component );
| ^
36 | const element = wrapper.find( '.sdms-empty-state__icon' );
37 | expect( element.exists() ).toBe( true );
38 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/EmptyState.test.js:35:20)
● EmptyState › when sdmsTotalSiteImages is greater than 0 › render message paragraph
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
40 | it( 'render message paragraph', () => {
41 | defineComponent( 1 );
> 42 | const wrapper = shallowMount( component );
| ^
43 | const element = wrapper.find( '.sdms-empty-state p' );
44 | expect( element.exists() ).toBe( true );
45 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/EmptyState.test.js:42:20)
FAIL tests/jest/components/Spinner.test.js
● Spinner › render the component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
5 | it( 'render the component', () => {
6 |
> 7 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
8 |
9 | const element = wrapper.find( '.sdms-spinner' );
10 | expect( element.exists() ).toBe( true );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/Spinner.test.js:7:32)
Summary of all failing tests
FAIL tests/jest/components/QuickView.test.js
● QuickView › when image data is provided › displays a header image
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
49 |
50 | it( 'displays a header image', () => {
> 51 | const wrapper = shallowMount( QuickView, {
| ^
52 | props: {
53 | title: imageSampleResult.title,
54 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:51:20)
● QuickView › when image data is provided › displays close, next, and previous buttons
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
64 |
65 | it( 'displays close, next, and previous buttons', () => {
> 66 | const wrapper = shallowMount( QuickView, {
| ^
67 | props: {
68 | title: imageSampleResult.title,
69 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:66:20)
● QuickView › when image data is provided › emits a "close" event when the close button is clicked
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
84 |
85 | it( 'emits a "close" event when the close button is clicked', done => {
> 86 | const wrapper = shallowMount( QuickView, {
| ^
87 | props: {
88 | title: imageSampleResult.title,
89 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:86:20)
● QuickView › when image data is provided › emits a "next" event when the next button is clicked
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
104 |
105 | it( 'emits a "next" event when the next button is clicked', done => {
> 106 | const wrapper = shallowMount( QuickView, {
| ^
107 | props: {
108 | title: imageSampleResult.title,
109 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:106:20)
● QuickView › when image data is provided › emits a "previous" event when the previous button is clicked
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
124 |
125 | it( 'emits a "previous" event when the previous button is clicked', done => {
> 126 | const wrapper = shallowMount( QuickView, {
| ^
127 | props: {
128 | title: imageSampleResult.title,
129 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:126:20)
● QuickView › when image data is provided › applies the appropriate class to the base element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
144 |
145 | it( 'applies the appropriate class to the base element', () => {
> 146 | const wrapper = shallowMount( QuickView, {
| ^
147 | props: {
148 | title: imageSampleResult.title,
149 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:146:20)
● QuickView › when image data is provided › displays an image title
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
159 |
160 | it( 'displays an image title', () => {
> 161 | const wrapper = shallowMount( QuickView, {
| ^
162 | props: {
163 | title: imageSampleResult.title,
164 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:161:20)
● QuickView › when image data is provided › displays an image description
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
174 |
175 | it( 'displays an image description', () => {
> 176 | const wrapper = shallowMount( QuickView, {
| ^
177 | props: {
178 | title: imageSampleResult.title,
179 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:176:20)
● QuickView › when image data is provided › displays the image artist
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
189 |
190 | it( 'displays the image artist', () => {
> 191 | const wrapper = shallowMount( QuickView, {
| ^
192 | props: {
193 | title: imageSampleResult.title,
194 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:191:20)
● QuickView › when image data is provided › displays the image license information
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
204 |
205 | it( 'displays the image license information', () => {
> 206 | const wrapper = shallowMount( QuickView, {
| ^
207 | props: {
208 | title: imageSampleResult.title,
209 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:206:20)
● QuickView › when image data is provided › displays the image assessment
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
219 |
220 | it( 'displays the image assessment', () => {
> 221 | const wrapper = shallowMount( QuickView, {
| ^
222 | props: {
223 | title: imageSampleResult.title,
224 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:221:20)
● QuickView › when image data is provided › displays a copy text section
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
237 |
238 | it( 'displays a copy text section', () => {
> 239 | const wrapper = shallowMount( QuickView, {
| ^
240 | props: {
241 | title: imageSampleResult.title,
242 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:239:20)
● QuickView › when image data is provided › displays the image name without extension
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
252 |
253 | it( 'displays the image name without extension', () => {
> 254 | const wrapper = shallowMount( QuickView, {
| ^
255 | props: {
256 | title: imageSampleResult.title,
257 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:254:20)
● QuickView › when image data is provided › displays the image creation date
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
267 |
268 | it( 'displays the image creation date', () => {
> 269 | const wrapper = shallowMount( QuickView, {
| ^
270 | props: {
271 | title: imageSampleResult.title,
272 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:269:20)
● QuickView › when image data is provided › displays the image resolution
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
282 |
283 | it( 'displays the image resolution', () => {
> 284 | const wrapper = shallowMount( QuickView, {
| ^
285 | props: {
286 | title: imageSampleResult.title,
287 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:284:20)
● QuickView › when image data is provided › displays the image mine-type
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
297 |
298 | it( 'displays the image mine-type', () => {
> 299 | const wrapper = shallowMount( QuickView, {
| ^
300 | props: {
301 | title: imageSampleResult.title,
302 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:299:20)
● QuickView › when image data is provided › contains a "more details" call-to-action button
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
312 |
313 | it( 'contains a "more details" call-to-action button', () => {
> 314 | const wrapper = shallowMount( QuickView, {
| ^
315 | props: {
316 | title: imageSampleResult.title,
317 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:314:20)
● QuickView › when video data is provided › Renders and sd-player component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
331 | describe( 'when video data is provided', () => {
332 | it( 'Renders and sd-player component', () => {
> 333 | const wrapper = shallowMount( QuickView, {
| ^
334 | props: {
335 | title: videoSampleResult.title,
336 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:333:20)
● QuickView › when video data is provided › applies the appropriate class to the base element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
345 |
346 | it( 'applies the appropriate class to the base element', () => {
> 347 | const wrapper = shallowMount( QuickView, {
| ^
348 | props: {
349 | title: imageSampleResult.title,
350 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:347:20)
● QuickView › when video data is provided › applies the appropriate class for dialog
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
359 |
360 | it( 'applies the appropriate class for dialog', () => {
> 361 | const wrapper = shallowMount( QuickView, {
| ^
362 | props: {
363 | title: imageSampleResult.title,
364 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:361:20)
● QuickView › Computed › imageClasses › Returns the correct class when image is Extra small
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
376 | describe( 'imageClasses', () => {
377 | it( 'Returns the correct class when image is Extra small', () => {
> 378 | const wrapper = shallowMount( QuickView, {
| ^
379 | props: {
380 | title: imageSampleResult.title,
381 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:378:21)
● QuickView › Computed › imageClasses › Returns the correct class when image is not thumbnail Wrapper Style
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
396 |
397 | it( 'Returns the correct class when image is not thumbnail Wrapper Style', () => {
> 398 | const wrapper = shallowMount( QuickView, {
| ^
399 | props: {
400 | title: imageSampleResult.title,
401 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:398:21)
● QuickView › Computed › srcset › Returns false if resizeUrl is not a function
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
428 | } );
429 |
> 430 | const wrapper = shallowMount( QuickView, {
| ^
431 | props: {
432 | title: imageSampleResult.title,
433 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:430:21)
● QuickView › Computed › srcset › include the just first PREVIEW_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
443 | it( 'include the just first PREVIEW_SIZE in string return', () => {
444 | const PREVIEW_SIZES = [ '640', '800', '1200', '1600' ];
> 445 | const wrapper = shallowMount( QuickView, {
| ^
446 | props: {
447 | title: imageSampleResult.title,
448 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:445:21)
● QuickView › Computed › srcset › When it is a dialog › include each PREVIEW_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
463 | it( 'include each PREVIEW_SIZE in string return', () => {
464 | const PREVIEW_SIZES = [ '640', '800', '1200', '1600' ];
> 465 | const wrapper = shallowMount( QuickView, {
| ^
466 | props: {
467 | title: imageSampleResult.title,
468 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:465:22)
● QuickView › Computed › srcset › When it is a dialog › include each MAX_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
481 | it( 'include each MAX_SIZE in string return', () => {
482 | const MAX_SIZE = '2000';
> 483 | const wrapper = shallowMount( QuickView, {
| ^
484 | props: {
485 | title: imageSampleResult.title,
486 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:483:22)
● QuickView › Computed › sizes › include the just first PREVIEW_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
504 | it( 'include the just first PREVIEW_SIZE in string return', () => {
505 | const PREVIEW_SIZES = [ '640', '800', '1200', '1600' ];
> 506 | const wrapper = shallowMount( QuickView, {
| ^
507 | props: {
508 | title: imageSampleResult.title,
509 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:506:21)
● QuickView › Computed › sizes › When it is a dialog › include each PREVIEW_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
524 | it( 'include each PREVIEW_SIZE in string return', () => {
525 | const PREVIEW_SIZES = [ '640', '800', '1200', '1600' ];
> 526 | const wrapper = shallowMount( QuickView, {
| ^
527 | props: {
528 | title: imageSampleResult.title,
529 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:526:22)
● QuickView › Computed › sizes › When it is a dialog › include each MAX_SIZE in string return
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
542 | it( 'include each MAX_SIZE in string return', () => {
543 | const MAX_SIZE = '2000';
> 544 | const wrapper = shallowMount( QuickView, {
| ^
545 | props: {
546 | title: imageSampleResult.title,
547 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:544:22)
● QuickView › Computed › metadata › when it is of type image › Returns the sample extmetadata
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
559 | describe( 'when it is of type image', () => {
560 | it( 'Returns the sample extmetadata', () => {
> 561 | const wrapper = shallowMount( QuickView, {
| ^
562 | props: {
563 | title: imageSampleResult.title,
564 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:561:22)
● QuickView › Computed › metadata › when it is of type audio › Returns the sample extmetadata
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
575 | describe( 'when it is of type audio', () => {
576 | it( 'Returns the sample extmetadata', () => {
> 577 | const wrapper = shallowMount( QuickView, {
| ^
578 | props: {
579 | title: videoSampleResult.title,
580 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:577:22)
● QuickView › Computed › metadata › when it is of type video › Returns the sample extmetadata
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
591 | describe( 'when it is of type video', () => {
592 | it( 'Returns the sample extmetadata', () => {
> 593 | const wrapper = shallowMount( QuickView, {
| ^
594 | props: {
595 | title: videoSampleResult.title,
596 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:593:22)
● QuickView › Computed › licenseText › when metadata is not set › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
609 | describe( 'when metadata is not set', () => {
610 | it( 'Returns null', () => {
> 611 | const wrapper = shallowMount( QuickView, {
| ^
612 | props: {
613 | title: imageSampleResult.title,
614 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:611:22)
● QuickView › Computed › licenseText › when metadata includes UsageTerms › Returns UsageTerms value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
624 | describe( 'when metadata includes UsageTerms', () => {
625 | it( 'Returns UsageTerms value', () => {
> 626 | const wrapper = shallowMount( QuickView, {
| ^
627 | props: {
628 | title: imageSampleResult.title,
629 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:626:22)
● QuickView › Computed › licenseText › when metadata includes LicenseShortName › Returns LicenseShortName value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
646 | };
647 |
> 648 | const wrapper = shallowMount( QuickView, {
| ^
649 | props: {
650 | title: imageSampleResult.title,
651 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:648:22)
● QuickView › Computed › licenseIcon › when metadata is not set › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
663 | describe( 'when metadata is not set', () => {
664 | it( 'Returns null', () => {
> 665 | const wrapper = shallowMount( QuickView, {
| ^
666 | props: {
667 | title: imageSampleResult.title,
668 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:665:22)
● QuickView › Computed › licenseIcon › when metadata includes License › Returns UsageTerms value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
679 | it( 'Returns UsageTerms value', () => {
680 | const getLicenseIconSpy = jest.spyOn( QuickView.methods, 'getLicenseIcon' );
> 681 | shallowMount( QuickView, {
| ^
682 | props: {
683 | title: imageSampleResult.title,
684 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:681:6)
● QuickView › Computed › licenseIcon › when metadata includes LicenseShortName › Returns LicenseShortName value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
704 | };
705 |
> 706 | shallowMount( QuickView, {
| ^
707 | props: {
708 | title: imageSampleResult.title,
709 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:706:6)
● QuickView › Computed › LicenseUrl › when metadata is not set › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
723 | describe( 'when metadata is not set', () => {
724 | it( 'Returns null', () => {
> 725 | const wrapper = shallowMount( QuickView, {
| ^
726 | props: {
727 | title: imageSampleResult.title,
728 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:725:22)
● QuickView › Computed › LicenseUrl › when metadata is set › Returns LicenseUrl value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
738 | describe( 'when metadata is set', () => {
739 | it( 'Returns LicenseUrl value', () => {
> 740 | const wrapper = shallowMount( QuickView, {
| ^
741 | props: {
742 | title: imageSampleResult.title,
743 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:740:22)
● QuickView › Computed › assessmentList › when assessment is not set › return false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
757 | describe( 'when assessment is not set', () => {
758 | it( 'return false', () => {
> 759 | const wrapper = shallowMount( QuickView, {
| ^
760 | props: {
761 | title: imageSampleResult.title,
762 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:759:22)
● QuickView › Computed › assessmentList › when assessment is set › return false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
776 | };
777 |
> 778 | const wrapper = shallowMount( QuickView, {
| ^
779 | props: {
780 | title: imageSampleResult.title,
781 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:778:22)
● QuickView › Computed › creationDate › when DateTimeOriginal is an instance of Date › Returns the original Date string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
798 | it( 'Returns the original Date string', () => {
799 |
> 800 | const wrapper = shallowMount( QuickView, {
| ^
801 | props: {
802 | title: imageSampleResult.title,
803 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:800:22)
● QuickView › Computed › creationDate › when DateTimeOriginal is not an instance of Date › Returns the original Date string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
819 | };
820 |
> 821 | const wrapper = shallowMount( QuickView, {
| ^
822 | props: {
823 | title: imageSampleResult.title,
824 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:821:22)
● QuickView › Computed › resolution › When width is missing › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
838 | imageSampleResult.imageinfo[ 0 ].width = null;
839 |
> 840 | const wrapper = shallowMount( QuickView, {
| ^
841 | props: {
842 | title: imageSampleResult.title,
843 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:840:22)
● QuickView › Computed › resolution › When height is missing › Returns null
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
855 | imageSampleResult.imageinfo[ 0 ].height = null;
856 |
> 857 | const wrapper = shallowMount( QuickView, {
| ^
858 | props: {
859 | title: imageSampleResult.title,
860 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:857:22)
● QuickView › Computed › resolution › When values are available › Returns a formatted value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
871 | it( 'Returns a formatted value', () => {
872 |
> 873 | const wrapper = shallowMount( QuickView, {
| ^
874 | props: {
875 | title: imageSampleResult.title,
876 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:873:22)
● QuickView › Computed › mimeType › Returns mime property of provided info
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
887 | describe( 'mimeType', () => {
888 | it( 'Returns mime property of provided info', () => {
> 889 | const wrapper = shallowMount( QuickView, {
| ^
890 | props: {
891 | title: imageSampleResult.title,
892 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:889:21)
● QuickView › Computed › mimeType › Returns empty object if mediatype is image
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
902 | describe( 'mimeType', () => {
903 | it( 'Returns empty object if mediatype is image', () => {
> 904 | const wrapper = shallowMount( QuickView, {
| ^
905 | props: {
906 | title: imageSampleResult.title,
907 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:904:21)
● QuickView › Computed › mimeType › Returns object if mediatype is audio
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
915 | } );
916 | it( 'Returns object if mediatype is audio', () => {
> 917 | const wrapper = shallowMount( QuickView, {
| ^
918 | props: {
919 | title: videoSampleResult.title,
920 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:917:21)
● QuickView › Computed › mimeType › Returns object if mediatype is video
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
936 | } );
937 | it( 'Returns object if mediatype is video', () => {
> 938 | const wrapper = shallowMount( QuickView, {
| ^
939 | props: {
940 | title: videoSampleResult.title,
941 | canonicalurl: videoSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:938:21)
● QuickView › Methods › close › When triggered by keyboard › emit a "close" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
963 | describe( 'When triggered by keyboard', () => {
964 | it( 'emit a "close" event', () => {
> 965 | const wrapper = shallowMount( QuickView, {
| ^
966 | props: {
967 | title: imageSampleResult.title,
968 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:965:22)
● QuickView › Methods › close › When triggered by keyboard › provide a boolean argument with emitted value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
982 | } );
983 | it( 'provide a boolean argument with emitted value', () => {
> 984 | const wrapper = shallowMount( QuickView, {
| ^
985 | props: {
986 | title: imageSampleResult.title,
987 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:984:22)
● QuickView › Methods › close › When triggered by mouse › emit a "close" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1003 | describe( 'When triggered by mouse', () => {
1004 | it( 'emit a "close" event', () => {
> 1005 | const wrapper = shallowMount( QuickView, {
| ^
1006 | props: {
1007 | title: imageSampleResult.title,
1008 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1005:22)
● QuickView › Methods › getLicenseIcon › Returns logoCC icon › when licence name starts with "cc"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1020 | describe( 'Returns logoCC icon', () => {
1021 | it( 'when licence name starts with "cc"', () => {
> 1022 | const wrapper = shallowMount( QuickView, {
| ^
1023 | props: {
1024 | title: imageSampleResult.title,
1025 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1022:22)
● QuickView › Methods › getLicenseIcon › Returns logoCC icon › when licence name starts with "attribution"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1033 | } );
1034 | it( 'when licence name starts with "attribution"', () => {
> 1035 | const wrapper = shallowMount( QuickView, {
| ^
1036 | props: {
1037 | title: imageSampleResult.title,
1038 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1035:22)
● QuickView › Methods › getLicenseIcon › Returns sdIconUnLock icon › when licence name starts with "pd"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1048 | describe( 'Returns sdIconUnLock icon', () => {
1049 | it( 'when licence name starts with "pd"', () => {
> 1050 | const wrapper = shallowMount( QuickView, {
| ^
1051 | props: {
1052 | title: imageSampleResult.title,
1053 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1050:22)
● QuickView › Methods › getLicenseIcon › Returns sdIconUnLock icon › when licence name starts with "no restrictions"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1061 | } );
1062 | it( 'when licence name starts with "no restrictions"', () => {
> 1063 | const wrapper = shallowMount( QuickView, {
| ^
1064 | props: {
1065 | title: imageSampleResult.title,
1066 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1063:22)
● QuickView › Methods › getLicenseIcon › Returns sdIconReference icon › when licence name is uknown"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1076 | describe( 'Returns sdIconReference icon', () => {
1077 | it( 'when licence name is uknown"', () => {
> 1078 | const wrapper = shallowMount( QuickView, {
| ^
1079 | props: {
1080 | title: imageSampleResult.title,
1081 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1078:22)
● QuickView › Methods › getThumbnailWrapperStyle › when image is landscape › set thumbnailWrapperStyle values
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1097 | imageSampleResult.imageinfo[ 0 ].height = 500;
1098 |
> 1099 | const wrapper = shallowMount( QuickView, {
| ^
1100 | props: {
1101 | title: imageSampleResult.title,
1102 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1099:22)
● QuickView › Methods › getThumbnailWrapperStyle › when image is portrait › set thumbnailWrapperStyle values
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1121 | imageSampleResult.imageinfo[ 0 ].height = 1000;
1122 |
> 1123 | const wrapper = shallowMount( QuickView, {
| ^
1124 | props: {
1125 | title: imageSampleResult.title,
1126 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1123:22)
● QuickView › Methods › getThumbnailWrapperStyle › when height is less than 100 › set isExtraSmall to true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1144 | imageSampleResult.imageinfo[ 0 ].height = 1000;
1145 |
> 1146 | const wrapper = shallowMount( QuickView, {
| ^
1147 | props: {
1148 | title: imageSampleResult.title,
1149 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1146:22)
● QuickView › Methods › onThumbnailLoad › sets thumbnailWrapperStyle to false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1160 | describe( 'onThumbnailLoad', () => {
1161 | it( 'sets thumbnailWrapperStyle to false', () => {
> 1162 | const wrapper = shallowMount( QuickView, {
| ^
1163 | props: {
1164 | title: imageSampleResult.title,
1165 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1162:21)
● QuickView › Methods › onPlay › logs a quickview_media_play action
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1175 | describe( 'onPlay', () => {
1176 | it( 'logs a quickview_media_play action', () => {
> 1177 | const wrapper = shallowMount( QuickView, {
| ^
1178 | props: {
1179 | title: imageSampleResult.title,
1180 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1177:21)
● QuickView › Methods › handleFilenameCopy › logs a quickview_filename_copy action
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1194 | describe( 'handleFilenameCopy', () => {
1195 | it( 'logs a quickview_filename_copy action', () => {
> 1196 | const wrapper = shallowMount( QuickView, {
| ^
1197 | props: {
1198 | title: imageSampleResult.title,
1199 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1196:21)
● QuickView › Methods › handleWikitextCopy › logs a quickview_wikitext_link_copy action
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1213 | describe( 'handleWikitextCopy', () => {
1214 | it( 'logs a quickview_wikitext_link_copy action', () => {
> 1215 | const wrapper = shallowMount( QuickView, {
| ^
1216 | props: {
1217 | title: imageSampleResult.title,
1218 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1215:21)
● QuickView › mounted › show spinner after timeout
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
1235 | jest.useFakeTimers();
1236 |
> 1237 | const wrapper = shallowMount( QuickView, {
| ^
1238 | props: {
1239 | title: imageSampleResult.title,
1240 | canonicalurl: imageSampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/QuickView.test.js:1237:20)
FAIL tests/jest/mixins/autocompleteLookupHandler.test.js
● AutocompleteLookupHandler › clearLookupResults › lookupResults array is empty
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 | };
27 |
> 28 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
29 |
30 | wrapper.setData( {
31 | lookupResults: [ 'result1', 'result2' ]
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:28:33)
● AutocompleteLookupHandler › getDebouncedLookupResults › triggers getLookupResults
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
54 | };
55 |
> 56 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
57 |
58 | const mockGetLookupResults = jest.fn();
59 | wrapper.vm.getLookupResults = mockGetLookupResults;
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:56:33)
● AutocompleteLookupHandler › getLookupResults › with empty input passed clear lookupResults
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
79 | };
80 |
> 81 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
82 |
83 | wrapper.setData( {
84 | lookupResults: [ 'result1', 'result2' ]
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:81:33)
● AutocompleteLookupHandler › getLookupResults › with invalid input passed › doLookupRequest not called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
101 | };
102 |
> 103 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
104 |
105 | const mockDoLookupRequest = jest.fn();
106 | wrapper.vm.doLookupRequest = mockDoLookupRequest;
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:103:34)
● AutocompleteLookupHandler › getLookupResults › with valid input passed › doLookupRequest is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
125 | };
126 |
> 127 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
128 |
129 | const mockDoLockupResolve = jest.fn();
130 | const mockDoLockupRequest = jest.fn().mockReturnValue( {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:127:34)
● AutocompleteLookupHandler › getLookupResults › with valid input passed › and no browser support for unicode regex; doLookupRequest is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
149 | };
150 |
> 151 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
152 |
153 | // Simulate regex error
154 | mockRegexMethod.mockImplementationOnce( function () {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:151:34)
● AutocompleteLookupHandler › getLookupResults › with valid input passed › getFilteredLookupResults passes due to valid result
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
178 | };
179 |
> 180 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
181 |
182 | const mockDoLockupResolve = function ( params ) {
183 | return params();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:180:34)
● AutocompleteLookupHandler › getLookupResults › with valid input passed › getFilteredLookupResults fails due to invalid result, clear lookupResults
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
209 | };
210 |
> 211 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
212 |
213 | const mockClearLookupResults = jest.fn();
214 | wrapper.vm.clearLookupResults = mockClearLookupResults;
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:211:34)
● AutocompleteLookupHandler › doLookupRequest › abort previous lookup promise if new lookup request
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
263 | };
264 |
> 265 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
266 |
267 | wrapper.vm.doLookupRequest( input );
268 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:265:33)
● AutocompleteLookupHandler › doLookupRequest › with multiple input passed as comma separated string; getLookupRequestForTerm is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
280 | };
281 |
> 282 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
283 |
284 | const mockGetLookupRequestForTermResolve = function ( paramsFunc ) {
285 | paramsFunc( {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:282:33)
● AutocompleteLookupHandler › doLookupRequest › with valid input passed and no browser support for unicode regex; getLookupRequestForTerm is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
328 | };
329 |
> 330 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
331 |
332 | mockRegexMethod.mockImplementationOnce( function () {
333 | throw new Error( '' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:330:33)
● AutocompleteLookupHandler › getLookupRequestForTerm › return empty search if lookupDisabled is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
384 | } );
385 |
> 386 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
387 |
388 | wrapper.vm.getLookupRequestForTerm( input );
389 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:386:33)
● AutocompleteLookupHandler › getLookupRequestForTerm › return search results if lookupDisabled is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
415 | } );
416 |
> 417 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
418 |
419 | wrapper.vm.getLookupRequestForTerm( input );
420 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:417:33)
● AutocompleteLookupHandler › getFilteredLookupResults › return array with length lookupResultsLimit
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
442 | };
443 |
> 444 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
445 |
446 | const res = wrapper.vm.getFilteredLookupResults( lookupResults, lookupRegex );
447 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:444:33)
● AutocompleteLookupHandler › getFilteredLookupResults › returns unique array result
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
465 | };
466 |
> 467 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
468 |
469 | const res = wrapper.vm.getFilteredLookupResults( lookupResults, lookupRegex );
470 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/autocompleteLookupHandler.test.js:467:33)
FAIL tests/jest/components/NamespaceFilterDialog.test.js
● EndOfResults › render the component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
6 | describe( 'EndOfResults', () => {
7 | it( 'render the component', () => {
> 8 | const wrapper = shallowMount( Component, {
| ^
9 | props: {
10 | items: [],
11 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:8:19)
● EndOfResults › initialRadio › returns initial value if valid
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | describe( 'initialRadio', () => {
54 | it( 'returns initial value if valid', () => {
> 55 | const wrapper = shallowMount( Component, {
| ^
56 | props: {
57 | items: [],
58 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:55:20)
● EndOfResults › initialRadio › returns custom if no initial value is provided
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
65 | } );
66 | it( 'returns custom if no initial value is provided', () => {
> 67 | const wrapper = shallowMount( Component, {
| ^
68 | props: {
69 | items: [],
70 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:67:20)
● EndOfResults › initialCustom › returns initialValue if is a custom value (number)
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
80 | describe( 'initialCustom', () => {
81 | it( 'returns initialValue if is a custom value (number)', () => {
> 82 | const wrapper = shallowMount( Component, {
| ^
83 | props: {
84 | items: [],
85 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:82:20)
● EndOfResults › initialCustom › returns array with formatted InitialValue
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
92 | } );
93 | it( 'returns array with formatted InitialValue', () => {
> 94 | const wrapper = shallowMount( Component, {
| ^
95 | props: {
96 | items: [],
97 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:94:20)
● EndOfResults › formattedNamespaces › generates label and value for namespaces
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
109 | describe( 'formattedNamespaces', () => {
110 | it( 'generates label and value for namespaces', () => {
> 111 | const wrapper = shallowMount( Component, {
| ^
112 | props: {
113 | items: [],
114 | namespaces: {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:111:20)
● EndOfResults › formattedNamespaces › default the label for a namespace with a value of 0 (blanknamespace)
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
127 | it( 'default the label for a namespace with a value of 0 (blanknamespace)', () => {
128 | global.mw.msg.mockReturnValueOnce( 'blanknamespace' );
> 129 | const wrapper = shallowMount( Component, {
| ^
130 | props: {
131 | items: [],
132 | namespaces: {
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:129:20)
● EndOfResults › isCustom › return true if selectedRadio is equal to "custom"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
147 | describe( 'isCustom', () => {
148 | it( 'return true if selectedRadio is equal to "custom" ', () => {
> 149 | const wrapper = shallowMount( Component, {
| ^
150 | props: {
151 | items: [],
152 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:149:20)
● EndOfResults › disableDialogAction › return false if not custom"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
162 | describe( 'disableDialogAction', () => {
163 | it( 'return false if not custom" ', () => {
> 164 | const wrapper = shallowMount( Component, {
| ^
165 | props: {
166 | items: [],
167 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:164:20)
● EndOfResults › disableDialogAction › return false if custom and with selected values"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
174 | } );
175 | it( 'return false if custom and with selected values" ', () => {
> 176 | const wrapper = shallowMount( Component, {
| ^
177 | props: {
178 | items: [],
179 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:176:20)
● EndOfResults › disableDialogAction › return true if custom but without selected custom"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
186 | } );
187 | it( 'return true if custom but without selected custom" ', () => {
> 188 | const wrapper = shallowMount( Component, {
| ^
189 | props: {
190 | items: [],
191 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:188:20)
● EndOfResults › methods › cancel › emit a "close" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
202 | describe( 'cancel', () => {
203 | it( 'emit a "close" event', () => {
> 204 | const wrapper = shallowMount( Component, {
| ^
205 | props: {
206 | items: [],
207 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:204:21)
● EndOfResults › methods › cancel › reset selectedRadio to initialRadio
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
216 | } );
217 | it( 'reset selectedRadio to initialRadio', () => {
> 218 | const wrapper = shallowMount( Component, {
| ^
219 | props: {
220 | items: [],
221 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:218:21)
● EndOfResults › methods › cancel › reset selectedRadio to initialRadio
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
230 | } );
231 | it( 'reset selectedRadio to initialRadio', () => {
> 232 | const wrapper = shallowMount( Component, {
| ^
233 | props: {
234 | items: [],
235 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:232:21)
● EndOfResults › methods › onProgress › emit a "close" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
246 | describe( 'onProgress', () => {
247 | it( 'emit a "close" event', () => {
> 248 | const wrapper = shallowMount( Component, {
| ^
249 | props: {
250 | items: [],
251 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:248:21)
● EndOfResults › methods › onProgress › emit a "submit" event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
260 | } );
261 | it( 'emit a "submit" event', () => {
> 262 | const wrapper = shallowMount( Component, {
| ^
263 | props: {
264 | items: [],
265 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:262:21)
● EndOfResults › methods › onProgress › emit a "submit" event with selectedRadio if namespace is not custom
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
274 | } );
275 | it( 'emit a "submit" event with selectedRadio if namespace is not custom', () => {
> 276 | const wrapper = shallowMount( Component, {
| ^
277 | props: {
278 | items: [],
279 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:276:21)
● EndOfResults › methods › onProgress › emit a "submit" event with selectedCustom if namespace is custom
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
289 | } );
290 | it( 'emit a "submit" event with selectedCustom if namespace is custom', () => {
> 291 | const wrapper = shallowMount( Component, {
| ^
292 | props: {
293 | items: [],
294 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:291:21)
● EndOfResults › methods › select › when value provided is part of namespaceGroups › set seletedRadio as the value provided
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
307 | describe( 'when value provided is part of namespaceGroups', () => {
308 | it( 'set seletedRadio as the value provided', () => {
> 309 | const wrapper = shallowMount( Component, {
| ^
310 | props: {
311 | items: [],
312 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:309:22)
● EndOfResults › methods › select › when value provided is part of namespaceGroups › set reset selectedCustom to initialCustom
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
321 | } );
322 | it( 'set reset selectedCustom to initialCustom', () => {
> 323 | const wrapper = shallowMount( Component, {
| ^
324 | props: {
325 | items: [],
326 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:323:22)
● EndOfResults › methods › select › when value provided is not part of namespaceGroups › set seletedRadio as "custom"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
337 | describe( 'when value provided is not part of namespaceGroups', () => {
338 | it( 'set seletedRadio as "custom"', () => {
> 339 | const wrapper = shallowMount( Component, {
| ^
340 | props: {
341 | items: [],
342 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:339:22)
● EndOfResults › methods › select › when value provided is not part of namespaceGroups › set reset selectedCustom to the formatted value provided
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
351 | } );
352 | it( 'set reset selectedCustom to the formatted value provided', () => {
> 353 | const wrapper = shallowMount( Component, {
| ^
354 | props: {
355 | items: [],
356 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:353:22)
● EndOfResults › methods › reset › reset the value of selectedRadio to initialRadio
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
371 | describe( 'reset', () => {
372 | it( 'reset the value of selectedRadio to initialRadio', () => {
> 373 | const wrapper = shallowMount( Component, {
| ^
374 | props: {
375 | items: [],
376 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:373:21)
● EndOfResults › methods › reset › reset the value of selectedCustom to initialCustom
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
385 | } );
386 | it( 'reset the value of selectedCustom to initialCustom', () => {
> 387 | const wrapper = shallowMount( Component, {
| ^
388 | props: {
389 | items: [],
390 | namespaces: {},
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/NamespaceFilterDialog.test.js:387:21)
FAIL tests/jest/components/SearchResults.test.js
● SearchResults › renders child component › (based on mediatype) successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:128:20)
● SearchResults › renders child component › spinner if pending (based on mediatype) is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:141:20)
● SearchResults › renders child component › show more button if continue (based on mediatype) is truthy and pending is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:154:20)
● SearchResults › renders child component › SearchError if hasError is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:165:20)
● SearchResults › renders child component › when hasError is false › and hasNoResults is true, render NoResults Component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:182:21)
● SearchResults › renders child component › when hasError is false › and hasNoResults is false, and endOfResults is true render EndOfResults Component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:192:21)
● SearchResults › renders child component › when hasError is false › and hasNoResults is false, endOfResults is false and shouldShowEmptyState is true render EmptyState Component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:205:21)
● SearchResults › quickview › renders Dialog Component if isMobileSkin is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:222:20)
● SearchResults › quickview › renders side component if isMobileSkin is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:231:20)
● SearchResults › Computed › resultComponent › when media type is image
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:245:21)
● SearchResults › Computed › resultComponent › when media type is not image
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
251 | it( 'when media type is not image', () => {
252 |
> 253 | const wrapper = shallowMount( Component, {
| ^
254 | props: {
255 | mediaType: 'video'
256 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:253:21)
● SearchResults › Methods › showDetails › scroll to view
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:285:15)
● SearchResults › Methods › showDetails › clear details if timeout isnt cleared
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:285:15)
● SearchResults › Methods › showDetails › setDetails
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:285:15)
● SearchResults › Methods › hideDetails › return if not mediatype details
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:327:21)
● SearchResults › Methods › hideDetails › if restoreFocus is passed as true, focus on current title
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:340:21)
● SearchResults › Methods › hideDetails › if restoreFocus is passed as false, focus on current title
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:354:21)
● SearchResults › Methods › changeQuickViewResult › set focusOn to next, when shouldfocuschange is true and addend is 1
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:375:21)
● SearchResults › Methods › changeQuickViewResult › set focusOn to previous, when shouldfocuschange is true and addend is not 1
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:392:21)
● SearchResults › Methods › changeQuickViewResult › set focusOn to null, when shouldfocuschange is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:409:21)
● SearchResults › Methods › scrollIntoViewIfNeeded › return if no ref
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:428:21)
● SearchResults › Methods › scrollIntoViewIfNeeded › if bounds top or bounds bottom is < 0, scroll into view
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:438:21)
● SearchResults › Methods › scrollIntoViewIfNeeded › if bounds top or bounds bottom is > window height, scroll into view
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:451:21)
● SearchResults › Methods › onDialogKeyup › if code is ArrowRight, pass adddend as 1
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:471:21)
● SearchResults › Methods › onDialogKeyup › if code is ArrowLeft, pass adddend as -1
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:483:21)
● SearchResults › Methods › getResultStyle › if initialized is false, resultStyle is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:499:21)
● SearchResults › Methods › getResultStyle › if mediaType is not video, resultStyle is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:509:21)
● SearchResults › Methods › getResultStyle › if mediaType is video, initialized is true, and offsetWidth is zero, resultStyle is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:524:21)
● SearchResults › Methods › getDebouncedResultStyle › calls getResultStyleMock
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:538:21)
● SearchResults › watch › on currentSearchTerm › set showQuickView to false and cleardetails
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:558:21)
● SearchResults › watch › on initialized › trigger getResultStyle
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:572:21)
● SearchResults › watch › on allActiveDetails › set showQuickView to true if details has mediatype and showQuickView is false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:589:21)
● SearchResults › on created › add resize event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:614:4)
● SearchResults › on destroyed › remove resize event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | const mockFocus = jest.fn();
54 | const renderComponent = ( store, mediaType ) => {
> 55 | return shallowMount( Component, {
| ^
56 | props: {
57 | mediaType: mediaType || defaultMediaType
58 | },
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at renderComponent (tests/jest/components/SearchResults.test.js:55:9)
at Object.<anonymous> (tests/jest/components/SearchResults.test.js:625:20)
FAIL tests/jest/mixins/restoreHistoryHandler.test.js
● RestoreHistoryHandler › on normal navigation › clears stored data on load
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
28 | Performance.mockPerformanceNavigation();
29 |
> 30 | VueTestUtils.shallowMount( Component );
| ^
31 |
32 | expect( mixinsInstance.methods.clearStoredPageState ).toHaveBeenCalled();
33 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:30:17)
● RestoreHistoryHandler › on normal navigation › does not restore page state
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 | };
45 |
> 46 | VueTestUtils.shallowMount( Component );
| ^
47 |
48 | expect( mixinsInstance.methods.restorePageState ).not.toHaveBeenCalled();
49 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:46:17)
● RestoreHistoryHandler › on back navigation › does not restore data if it does not have stashed data
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
62 | };
63 |
> 64 | VueTestUtils.shallowMount( Component );
| ^
65 |
66 | expect( mixinsInstance.methods.restorePageState ).not.toHaveBeenCalled();
67 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:64:17)
● RestoreHistoryHandler › on back navigation › when perf.navigationEntry is supported › restores page state if stored data exists and perf.navigationEntry says that user is back-navigating
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
80 | };
81 |
> 82 | VueTestUtils.shallowMount( Component );
| ^
83 |
84 | expect( mixinsInstance.methods.restorePageState ).toHaveBeenCalled();
85 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:82:18)
● RestoreHistoryHandler › on back navigation › when perf.navigationEntry is not supported › restores page state if stored data exists and deprecated performance.navigation.type is 2
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
99 | };
100 |
> 101 | VueTestUtils.shallowMount( Component );
| ^
102 |
103 | expect( mixinsInstance.methods.restorePageState ).toHaveBeenCalled();
104 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:101:18)
● RestoreHistoryHandler › on created › add popstate event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
114 | };
115 |
> 116 | VueTestUtils.shallowMount( Component );
| ^
117 |
118 | expect( window.addEventListener ).toHaveBeenCalled();
119 | expect( window.addEventListener.mock.calls[ 0 ][ 0 ] ).toBe( 'popstate' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:116:17)
● RestoreHistoryHandler › on created › add pagehide event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
126 | };
127 |
> 128 | VueTestUtils.shallowMount( Component );
| ^
129 |
130 | expect( window.addEventListener ).toHaveBeenCalled();
131 | expect( window.addEventListener.mock.calls[ 1 ][ 0 ] ).toBe( 'pagehide' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:128:17)
● RestoreHistoryHandler › onPageHide › when loading from cache › stored data is cleared
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
145 | };
146 |
> 147 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
148 |
149 | wrapper.vm.onPageHide( event );
150 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:147:34)
● RestoreHistoryHandler › onPageHide › when not loading from cache › stash page when event is not persisted
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
165 | };
166 |
> 167 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
168 | wrapper.vm.onPageHide( event );
169 |
170 | expect( mixinsInstance.methods.stashPageState ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:167:34)
● RestoreHistoryHandler › onPopState › it does not restore data when state is not passed as argument
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
193 | };
194 |
> 195 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
196 | wrapper.vm.onPopState( event );
197 |
198 | expect( mixinsInstance.methods.setSearchTerm ).not.toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:195:33)
● RestoreHistoryHandler › onPopState › it setSearchTerm using the event search paramether
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
212 | };
213 |
> 214 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
215 | wrapper.vm.onPopState( event );
216 |
217 | expect( mixinsInstance.methods.setSearchTerm ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:214:33)
● RestoreHistoryHandler › onPopState › it set currentType using the event type paramether
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
232 | };
233 |
> 234 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
235 | wrapper.vm.onPopState( event );
236 |
237 | expect( mixinsInstance.methods.updateCurrentType ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:234:33)
● RestoreHistoryHandler › onPopState › it clear lookup result if term is empty string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
255 | };
256 |
> 257 | const wrapper = VueTestUtils.shallowMount( Component,
| ^
258 | {
259 | propsData: {
260 | currentSearchTerm: ''
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:257:33)
● RestoreHistoryHandler › onPopState › it reset result if term is empty string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
287 | };
288 |
> 289 | const wrapper = VueTestUtils.shallowMount( Component,
| ^
290 | {
291 | propsData: {
292 | currentSearchTerm: ''
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:289:33)
● RestoreHistoryHandler › onPopState › resetFilters
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
316 | };
317 |
> 318 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
319 | wrapper.vm.onPopState( event );
320 |
321 | expect( mixinsInstance.methods.resetFilters ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:318:33)
● RestoreHistoryHandler › onPopState › clearFilterQueryParams
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
335 | };
336 |
> 337 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
338 | wrapper.vm.onPopState( event );
339 |
340 | expect( mixinsInstance.methods.clearFilterQueryParams ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:337:33)
● RestoreHistoryHandler › on unmount › remove the popstate event listener
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
354 | };
355 |
> 356 | const wrapper = VueTestUtils.shallowMount( Component, {
| ^
357 | propsData: {
358 | currentType: 'dummy',
359 | term: 'dummy'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:356:33)
● RestoreHistoryHandler › on mounted › triggers replaceQueryToHistoryState
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
376 | };
377 |
> 378 | VueTestUtils.shallowMount( Component );
| ^
379 |
380 | expect( mixinsInstance.methods.replaceQueryToHistoryState ).toHaveBeenCalled();
381 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/restoreHistoryHandler.test.js:378:17)
FAIL tests/jest/mixins/observer.test.js
● Observer › check if IntersectObserver feature is set on mount
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 | };
18 | const spySupportsObserverCheck = jest.spyOn( observerInstance.methods, 'supportsObserverCheck' );
> 19 | VueTestUtils.shallowMount( Component );
| ^
20 |
21 | expect( spySupportsObserverCheck ).toHaveBeenCalled();
22 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:19:16)
● Observer › when IntersectionObserver is not supported › set observerSupported to false if feature is not supported
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
30 | };
31 |
> 32 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
33 | expect( wrapper.vm.observerSupported ).toBe( false );
34 | } );
35 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:32:33)
● Observer › when IntersectionObserver is not supported › does not calls the IntersectionObserver API
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
40 | };
41 |
> 42 | VueTestUtils.shallowMount( Component );
| ^
43 |
44 | expect( window.IntersectionObserver ).not.toHaveBeenCalled();
45 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:42:17)
● Observer › when IntersectionObserver is not supported › calls disconnectObserver method when component is destroyed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | observerInstance.methods.disconnectObserver = jest.fn();
54 |
> 55 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
56 | wrapper.unmount();
57 |
58 | expect( observerInstance.methods.disconnectObserver ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:55:33)
● Observer › when IntersectionObserver is not supported › does not trigger the observer.disconnect method when destroyed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
65 | };
66 |
> 67 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
68 | wrapper.unmount();
69 |
70 | expect( IntersectionObserverSpies.disconnect ).not.toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:67:33)
● Observer › when IntersectionObserver is supported › set observerSupported to true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
82 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( true );
83 |
> 84 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
85 |
86 | expect( observerInstance.methods.supportsObserverCheck ).toHaveBeenCalled();
87 | expect( wrapper.vm.observerSupported ).toBe( true );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:84:33)
● Observer › when IntersectionObserver is supported › calls the IntersectionObserver API
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
97 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( true );
98 |
> 99 | VueTestUtils.shallowMount( Component );
| ^
100 |
101 | expect( window.IntersectionObserver ).toHaveBeenCalled();
102 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:99:17)
● Observer › when IntersectionObserver is supported › define the observerElement
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
111 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( true );
112 |
> 113 | VueTestUtils.shallowMount( Component );
| ^
114 |
115 | Vue.nextTick().then( () => {
116 | expect( observerInstance.methods.defineObserverElement ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:113:17)
● Observer › when IntersectionObserver is supported › triggers the observation with the defined element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
129 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( mockSelector );
130 |
> 131 | VueTestUtils.shallowMount( Component );
| ^
132 |
133 | Vue.nextTick().then( () => {
134 | expect( IntersectionObserverSpies.observe ).toHaveBeenCalled();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:131:17)
● Observer › when IntersectionObserver is supported › trigger the observer.disconnect method when destroyed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
148 | observerInstance.methods.defineObserverElement = jest.fn().mockReturnValue( mockSelector );
149 |
> 150 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
151 |
152 | Vue.nextTick().then( () => {
153 | wrapper.unmount();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:150:33)
● Observer › when intersectionCallback is triggered › triggers a change event
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
169 | ];
170 |
> 171 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
172 | wrapper.vm.intersectionCallback( mockCallbackArgument );
173 |
174 | expect( wrapper.emitted().change ).toBeTruthy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:171:33)
● Observer › when intersectionCallback is triggered › triggers an "hide" event, when method called with a falsy isIntersecting
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
184 | ];
185 |
> 186 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
187 | wrapper.vm.intersectionCallback( mockCallbackArgument );
188 |
189 | expect( wrapper.emitted().hide ).toBeTruthy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:186:33)
● Observer › when intersectionCallback is triggered › set the observerIntersecting data to "false" when value isIntersecting is falsy
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
199 | ];
200 |
> 201 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
202 | wrapper.vm.intersectionCallback( mockCallbackArgument );
203 |
204 | expect( wrapper.vm.observerIntersecting ).toBeFalsy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:201:33)
● Observer › when intersectionCallback is triggered › triggers an "intersect" event, when method called with isIntersecting
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
214 | ];
215 |
> 216 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
217 | wrapper.vm.intersectionCallback( mockCallbackArgument );
218 |
219 | expect( wrapper.emitted().intersect ).toBeTruthy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:216:33)
● Observer › when intersectionCallback is triggered › set the observerIntersecting data to "true" when value isIntersecting is truthy
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
229 | ];
230 |
> 231 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
232 | wrapper.vm.intersectionCallback( mockCallbackArgument );
233 |
234 | expect( wrapper.vm.observerIntersecting ).toBeTruthy();
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/mixins/observer.test.js:231:33)
FAIL tests/jest/components/base/select.test.js
● Select › when interacting with the dropdown › it toggle menu off when activeItemIndex is empty and showMenu is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
320 |
321 | const initialSelectionIndex = -1;
> 322 | const wrapper = VueTestUtils.shallowMount( Select, {
| ^
323 | propsData: {
324 | name: 'fruits',
325 | label: 'select a fruit',
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/select.test.js:322:33)
● Select › when interacting with the dropdown › emits "select" when activeItemIndex is empty and showMenu is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
350 |
351 | const initialSelectionIndex = 2;
> 352 | const wrapper = VueTestUtils.shallowMount( Select, {
| ^
353 | propsData: {
354 | name: 'fruits',
355 | label: 'select a fruit',
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/select.test.js:352:33)
FAIL tests/jest/components/app.test.js
● App › on filter change › hides the details of the changed tab
TypeError: (((cov_2f0nkwwdb0(...).b[0][0]++) , this.$refs[data.mediaType][0]) || ((cov_2f0nkwwdb0(...).b[0][1]++) , this.$refs[data.mediaType])).hideDetails is not a function
111 | mixins: [
112 | autocompleteLookupHandler,
> 113 | restoreHistoryHandler
| ^
114 | ],
115 |
116 | // The App.vue file contains no local state. An empty object is returned as
at Proxy.onFilterChange (resources/components/App.vue:113:69)
at Object.<anonymous> (tests/jest/components/app.test.js:248:15)
● App › on filter change › update the query parameter
TypeError: (((cov_2f0nkwwdb0(...).b[0][0]++) , this.$refs[data.mediaType][0]) || ((cov_2f0nkwwdb0(...).b[0][1]++) , this.$refs[data.mediaType])).hideDetails is not a function
111 | mixins: [
112 | autocompleteLookupHandler,
> 113 | restoreHistoryHandler
| ^
114 | ],
115 |
116 | // The App.vue file contains no local state. An empty object is returned as
at Proxy.onFilterChange (resources/components/App.vue:113:69)
at Object.<anonymous> (tests/jest/components/app.test.js:248:15)
● App › on filter change › update history state
TypeError: (((cov_2f0nkwwdb0(...).b[0][0]++) , this.$refs[data.mediaType][0]) || ((cov_2f0nkwwdb0(...).b[0][1]++) , this.$refs[data.mediaType])).hideDetails is not a function
111 | mixins: [
112 | autocompleteLookupHandler,
> 113 | restoreHistoryHandler
| ^
114 | ],
115 |
116 | // The App.vue file contains no local state. An empty object is returned as
at Proxy.onFilterChange (resources/components/App.vue:113:69)
at Object.<anonymous> (tests/jest/components/app.test.js:248:15)
FAIL tests/jest/components/results/pageResult.test.js
● PageResult › renders an heading with displayName
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
46 |
47 | it( 'renders an heading with displayName', () => {
> 48 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
49 | props: {
50 | title: sampleResult.title,
51 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:48:32)
● PageResult › renders a snippets as HTML
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
60 | it( 'renders a snippets as HTML', () => {
61 | const dummyHtmlSnippet = '<div class="dummy_snippet"></div>';
> 62 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
63 | props: {
64 | title: sampleResult.title,
65 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:62:32)
● PageResult › renders category text when categoryInfo is available
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
73 |
74 | it( 'renders category text when categoryInfo is available', () => {
> 75 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
76 | props: {
77 | title: sampleResultWithCategoryInfo.title,
78 | index: sampleResultWithCategoryInfo.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:75:32)
● PageResult › renders size text when value available
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
86 |
87 | it( 'renders size text when value available', () => {
> 88 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
89 | props: {
90 | title: sampleResult.title,
91 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:88:32)
● PageResult › renders wordcount text when value available
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
99 |
100 | it( 'renders wordcount text when value available', () => {
> 101 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
102 | props: {
103 | title: sampleResult.title,
104 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:101:32)
● PageResult › contains a link element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
112 |
113 | it( 'contains a link element', () => {
> 114 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
115 | props: {
116 | title: sampleResult.title,
117 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:114:32)
● PageResult › clicking the link element causes a "click" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
124 |
125 | it( 'clicking the link element causes a "click" event to be fired', () => {
> 126 | const wrapper = VueTestUtils.shallowMount( PageResult, {
| ^
127 | props: {
128 | title: sampleResult.title,
129 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/pageResult.test.js:126:32)
FAIL tests/jest/components/results/ImageResult.test.js
● ImageResult › contains an Image component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 |
45 | it( 'contains an Image component', () => {
> 46 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
47 | props: {
48 | title: sampleResult.title,
49 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:46:32)
● ImageResult › calculates its own "width" style rule based on result thumbnail dimensions
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
60 |
61 | it( 'calculates its own "width" style rule based on result thumbnail dimensions', () => {
> 62 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
63 | props: {
64 | title: sampleResult.title,
65 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:62:32)
● ImageResult › applies a portrait class if the aspect ratio is greater than one
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
76 |
77 | it( 'applies a portrait class if the aspect ratio is greater than one', () => {
> 78 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
79 | props: {
80 | title: sampleResult.title,
81 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:78:32)
● ImageResult › contains a link element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
95 |
96 | it( 'contains a link element', () => {
> 97 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
98 | props: {
99 | title: sampleResult.title,
100 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:97:32)
● ImageResult › clicking the link element causes a "show-details" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
110 |
111 | it( 'clicking the link element causes a "show-details" event to be fired', done => {
> 112 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
113 | props: {
114 | title: sampleResult.title,
115 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:112:32)
● ImageResult › the "show-details" event includes the result title in its payload
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
129 |
130 | it( 'the "show-details" event includes the result title in its payload', done => {
> 131 | const wrapper = VueTestUtils.shallowMount( ImageResult, {
| ^
132 | props: {
133 | title: sampleResult.title,
134 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/ImageResult.test.js:131:32)
FAIL tests/jest/components/results/otherResult.test.js
● OtherResult › renders two link elements
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
42 |
43 | it( 'renders two link elements', () => {
> 44 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
45 | props: {
46 | title: sampleResult.title,
47 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:44:32)
● OtherResult › renders a sdms-image component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
56 |
57 | it( 'renders a sdms-image component', () => {
> 58 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
59 | props: {
60 | title: sampleResult.title,
61 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:58:32)
● OtherResult › clicking the thumbnail wrapper link element causes a "click" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
69 |
70 | it( 'clicking the thumbnail wrapper link element causes a "click" event to be fired', () => {
> 71 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
72 | props: {
73 | title: sampleResult.title,
74 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:71:32)
● OtherResult › renders an heading element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
82 |
83 | it( 'renders an heading element', () => {
> 84 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
85 | props: {
86 | title: sampleResult.title,
87 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:84:32)
● OtherResult › clicking the heading link element causes a "click" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
95 |
96 | it( 'clicking the heading link element causes a "click" event to be fired', () => {
> 97 | const wrapper = VueTestUtils.shallowMount( OtherResult, {
| ^
98 | props: {
99 | title: sampleResult.title,
100 | index: sampleResult.index,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/otherResult.test.js:97:32)
FAIL tests/jest/components/results/videoResult.test.js
● VideoResult › contains an element displaying a formattedDuration
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 |
45 | it( 'contains an element displaying a formattedDuration', () => {
> 46 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
47 | props: {
48 | title: sampleResult.title,
49 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:46:32)
● VideoResult › contains an image element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
59 |
60 | it( 'contains an image element', () => {
> 61 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
62 | props: {
63 | title: sampleResult.title,
64 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:61:32)
● VideoResult › contains an element containing a mime type
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
74 |
75 | it( 'contains an element containing a mime type', () => {
> 76 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
77 | props: {
78 | title: sampleResult.title,
79 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:76:32)
● VideoResult › contains a link element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
89 |
90 | it( 'contains a link element', () => {
> 91 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
92 | props: {
93 | title: sampleResult.title,
94 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:91:32)
● VideoResult › clicking the link element causes a "show-details" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
104 |
105 | it( 'clicking the link element causes a "show-details" event to be fired', done => {
> 106 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
107 | props: {
108 | title: sampleResult.title,
109 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:106:32)
● VideoResult › the "show-details" event includes the result title in its payload
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
123 |
124 | it( 'the "show-details" event includes the result title in its payload', done => {
> 125 | const wrapper = VueTestUtils.shallowMount( VideoResult, {
| ^
126 | props: {
127 | title: sampleResult.title,
128 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/videoResult.test.js:125:32)
FAIL tests/jest/components/results/audioResult.test.js
● AudioResult › contains an element displaying a formattedDuration
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 |
45 | it( 'contains an element displaying a formattedDuration', () => {
> 46 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
47 | propsData: {
48 | title: sampleResult.title,
49 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:46:32)
● AudioResult › contains an element containing a mime type
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
59 |
60 | it( 'contains an element containing a mime type', () => {
> 61 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
62 | propsData: {
63 | title: sampleResult.title,
64 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:61:32)
● AudioResult › contains a link element
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
74 |
75 | it( 'contains a link element', () => {
> 76 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
77 | propsData: {
78 | title: sampleResult.title,
79 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:76:32)
● AudioResult › clicking the link element causes a "show-details" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
89 |
90 | it( 'clicking the link element causes a "show-details" event to be fired', done => {
> 91 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
92 | propsData: {
93 | title: sampleResult.title,
94 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:91:32)
● AudioResult › the "show-details" event includes the result title in its payload
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
108 |
109 | it( 'the "show-details" event includes the result title in its payload', done => {
> 110 | const wrapper = VueTestUtils.shallowMount( AudioResult, {
| ^
111 | propsData: {
112 | title: sampleResult.title,
113 | canonicalurl: sampleResult.canonicalurl,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/results/audioResult.test.js:110:32)
FAIL tests/jest/components/base/dialog.test.js
● Dialog Component › Renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
5 | describe( 'Dialog Component', () => {
6 | it( 'Renders successfully', () => {
> 7 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
8 | propsData: {
9 | active: false
10 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:7:32)
● Dialog Component › dialog container is not rendered
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
16 |
17 | it( 'dialog container is not rendered', () => {
> 18 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
19 | propsData: {
20 | active: false
21 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:18:32)
● Dialog Component › dialog container is rendered
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
27 |
28 | it( 'dialog container is rendered', () => {
> 29 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
30 | propsData: {
31 | active: true
32 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:29:32)
● Dialog Component › triggers close on keydown escape
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
38 |
39 | it( 'triggers close on keydown escape', ( done ) => {
> 40 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
41 | propsData: {
42 | active: true
43 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:40:32)
● Dialog Component › triggers "key" event to be fired when keyboard is clicked
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
54 |
55 | it( 'triggers "key" event to be fired when keyboard is clicked', ( done ) => {
> 56 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
57 | propsData: {
58 | active: true
59 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:56:32)
● Dialog Component › destroys and removes all added class from document body
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
72 | document.body.classList.remove = jest.fn();
73 | document.body.removeChild = jest.fn();
> 74 | const wrapper = VueTestUtils.shallowMount( Dialog, {
| ^
75 | propsData: {
76 | active: true
77 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/dialog.test.js:74:32)
FAIL tests/jest/components/base/icon.test.js
● Icon Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
5 | describe( 'Icon Component', () => {
6 | it( 'renders successfully', () => {
> 7 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
8 | propsData: {
9 | icon: icons.sdIconAlert
10 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:7:32)
● Icon Component › icon is filled with iconColor prop value
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 | it( 'icon is filled with iconColor prop value', () => {
18 | const color = '#000000';
> 19 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
20 | propsData: {
21 | icon: icons.sdIconAlert,
22 | iconColor: color
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:19:32)
● Icon Component › renders path if icon is string
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
31 | it( 'renders path if icon is string', () => {
32 |
> 33 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
34 | propsData: {
35 | icon: icons.sdIconAlert,
36 | iconTitle: 'Alert Icon'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:33:32)
● Icon Component › renders path if icon is an object containing path
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
48 | path: icons.sdIconAlert
49 | };
> 50 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
51 | propsData: {
52 | icon: iconElement,
53 | iconTitle: 'Alert Icon'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:50:32)
● Icon Component › renders rtl as path if icon is an object that contains rtl and document.documentElement.dir is rtl
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
68 | };
69 |
> 70 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
71 | propsData: {
72 | icon: iconElement
73 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:70:32)
● Icon Component › renders ltr if icon shouldFlipExceptions contains langCode
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
88 | };
89 |
> 90 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
91 | propsData: {
92 | icon: iconElement,
93 | langCode: 'en'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:90:32)
● Icon Component › renders langCodeMap langCode path string if langCodeMap object contains langCode
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
111 | };
112 |
> 113 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
114 | propsData: {
115 | icon: iconElement,
116 | langCode: 'en'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:113:32)
● Icon Component › renders default if passed in icon object and document.documentElement.dir is not rtl
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
130 | };
131 |
> 132 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
133 | propsData: {
134 | icon: iconElement
135 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:132:32)
● Icon Component › should flip if shouldflip is passed in icon object
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
147 | path: icons.sdIconAlert
148 | };
> 149 | const wrapper = VueTestUtils.shallowMount( Icon, {
| ^
150 | propsData: {
151 | icon: iconElement,
152 | iconTitle: 'Alert Icon'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/icon.test.js:149:32)
FAIL tests/jest/components/base/copyTextLayout.test.js
● SdCopyTextLayout Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
9 | describe( 'SdCopyTextLayout Component', () => {
10 | it( 'renders successfully', () => {
> 11 | const wrapper = VueTestUtils.shallowMount( CopyTextLayout, {
| ^
12 | propsData: {
13 | copyText: sampleTest
14 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/copyTextLayout.test.js:11:32)
● SdCopyTextLayout Component › text is same as text passed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
20 |
21 | it( 'text is same as text passed', () => {
> 22 | const wrapper = VueTestUtils.shallowMount( CopyTextLayout, {
| ^
23 | propsData: {
24 | copyText: sampleTest
25 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/copyTextLayout.test.js:22:32)
● SdCopyTextLayout Component › overflow is hidden if hideOverflow is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
99 |
100 | it( 'overflow is hidden if hideOverflow is passed as true', () => {
> 101 | const wrapper = VueTestUtils.shallowMount( CopyTextLayout, {
| ^
102 | propsData: {
103 | copyText: sampleTest,
104 | hideOverflow: true
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/copyTextLayout.test.js:101:32)
● SdCopyTextLayout Component › is inline if inline is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
110 |
111 | it( 'is inline if inline is passed as true', () => {
> 112 | const wrapper = VueTestUtils.shallowMount( CopyTextLayout, {
| ^
113 | propsData: {
114 | copyText: sampleTest,
115 | inline: true
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/copyTextLayout.test.js:112:32)
FAIL tests/jest/components/UserNotice.test.js
● UserNotice › renders › the parent component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
14 | describe( 'renders ', () => {
15 | it( 'the parent component', () => {
> 16 | const wrapper = shallowMount( Component );
| ^
17 | const element = wrapper.find( '.sdms-user-notice__message' );
18 | expect( element.exists() ).toBe( true );
19 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:16:20)
● UserNotice › renders › a message component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 |
27 | it( 'a message component', () => {
> 28 | const wrapper = shallowMount( Component );
| ^
29 | const innerComponent = wrapper.findComponent( Message );
30 | expect( innerComponent.exists() ).toBe( true );
31 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:28:20)
● UserNotice › does not render the component › when user is on mobile skin
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
37 | .calledWith( 'skin' )
38 | .mockReturnValueOnce( 'minerva' );
> 39 | const wrapper = shallowMount( Component );
| ^
40 | const element = wrapper.find( '.sdms-user-notice__message' );
41 | expect( element.exists() ).toBe( false );
42 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:39:20)
● UserNotice › does not render the component › when user is Anon
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 | it( 'when user is Anon', () => {
45 | global.mw.user.isAnon.mockReturnValueOnce( true );
> 46 | const wrapper = shallowMount( Component );
| ^
47 | const element = wrapper.find( '.sdms-user-notice__message' );
48 | expect( element.exists() ).toBe( false );
49 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:46:20)
● UserNotice › does not render the component › when notice previously dismissed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
53 | .calledWith( 'sdms-search-user-notice-dismissed' )
54 | .mockReturnValueOnce( 1 );
> 55 | const wrapper = shallowMount( Component );
| ^
56 | const element = wrapper.find( '.sdms-user-notice__message' );
57 | expect( element.exists() ).toBe( false );
58 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:55:20)
● UserNotice › does not render the component › when notice dismissed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
59 |
60 | it( 'when notice dismissed', ( done ) => {
> 61 | const wrapper = shallowMount( Component );
| ^
62 | wrapper.setData( { dismissed: true } );
63 | wrapper.vm.$nextTick( () => {
64 | const element = wrapper.find( '.sdms-user-notice__message' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:61:20)
● UserNotice › on dismiss button click › sends saveOption to the api
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
71 | describe( 'on dismiss button click', () => {
72 | it( 'sends saveOption to the api', () => {
> 73 | const wrapper = shallowMount( Component );
| ^
74 | wrapper.vm.dismiss();
75 | expect( global.mw.Api.prototype.saveOption ).toHaveBeenCalled();
76 | expect( global.mw.Api.prototype.saveOption ).toHaveBeenCalledWith( 'sdms-search-user-notice-dismissed', 1 );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:73:20)
● UserNotice › on dismiss button click › saves options to user object
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
78 |
79 | it( 'saves options to user object', () => {
> 80 | const wrapper = shallowMount( Component );
| ^
81 | wrapper.vm.dismiss();
82 | expect( global.mw.user.options.set ).toHaveBeenCalled();
83 | expect( global.mw.user.options.set ).toHaveBeenCalledWith( 'sdms-search-user-notice-dismissed', 1 );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:80:20)
● UserNotice › on dismiss button click › changes dismissed data
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
85 |
86 | it( 'changes dismissed data', () => {
> 87 | const wrapper = shallowMount( Component );
| ^
88 | wrapper.vm.dismiss();
89 | expect( wrapper.vm.dismissed ).toBeTruthy();
90 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/UserNotice.test.js:87:20)
FAIL tests/jest/components/base/button.test.js
● Button Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
10 | it( 'renders successfully', () => {
11 |
> 12 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
13 | propsData: {
14 | disabled: false,
15 | frameless: true,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:12:32)
● Button Component › click causes a "click" event to be fired
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 | it( 'click causes a "click" event to be fired', done => {
27 |
> 28 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
29 | propsData: {
30 | disabled: false,
31 | frameless: true,
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:28:32)
● Button Component › is framed if frameless is passed as false
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
45 | it( 'is framed if frameless is passed as false', () => {
46 |
> 47 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
48 | propsData: {
49 | frameless: false
50 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:47:32)
● Button Component › is disabled if disabled is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
57 | it( 'is disabled if disabled is passed as true', () => {
58 |
> 59 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
60 | propsData: {
61 | disabled: true
62 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:59:32)
● Button Component › is progressive if progressive is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
69 | it( 'is progressive if progressive is passed as true', () => {
70 |
> 71 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
72 | propsData: {
73 | progressive: true
74 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:71:32)
● Button Component › is destructive if destructive is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
81 | it( 'is destructive if destructive is passed as true', () => {
82 |
> 83 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
84 | propsData: {
85 | destructive: true
86 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:83:32)
● Button Component › is primary if primary is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
93 | it( 'is primary if primary is passed as true', () => {
94 |
> 95 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
96 | propsData: {
97 | primary: true
98 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:95:32)
● Button Component › has invisible text if invisibleText is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
104 | it( 'has invisible text if invisibleText is passed as true', () => {
105 |
> 106 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
107 | propsData: {
108 | invisibleText: true
109 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:106:32)
● Button Component › has icon if icon is passed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
116 | it( 'has icon if icon is passed', () => {
117 |
> 118 | const wrapper = VueTestUtils.shallowMount( Button, {
| ^
119 | propsData: {
120 | icon: icons.sdIconAlert
121 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/button.test.js:118:32)
FAIL tests/jest/components/base/image.test.js
● Image Component › Renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 |
18 | it( 'Renders successfully', () => {
> 19 | const wrapper = VueTestUtils.shallowMount( Image, {
| ^
20 | propsData: samplePropsData
21 | } );
22 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/image.test.js:19:32)
● Image Component › width and height style match props
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
29 |
30 | const propsData = { source: samplePropsData.source, alt: samplePropsData.alt, originalWidth: 200, originalHeight: 200 };
> 31 | const wrapper = VueTestUtils.shallowMount( Image, {
| ^
32 | propsData
33 | } );
34 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/image.test.js:31:32)
● Image Component › source is set immediately if observer is not supported
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
44 |
45 | it( 'source is set immediately if observer is not supported', () => {
> 46 | const wrapper = VueTestUtils.shallowMount( Image, {
| ^
47 | propsData: samplePropsData
48 | } );
49 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/image.test.js:46:32)
● Image Component › source is set when observerIntersecting is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
76 |
77 | it( 'source is set when observerIntersecting is true', () => {
> 78 | const wrapper = VueTestUtils.shallowMount( Image, {
| ^
79 | propsData: samplePropsData
80 | } );
81 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/image.test.js:78:32)
FAIL tests/jest/components/base/message.test.js
● Message Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
8 | it( 'renders successfully', () => {
9 |
> 10 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
11 | propsData: {}
12 | } );
13 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:10:32)
● Message Component › renders inline if inline is true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
21 | it( 'renders inline if inline is true', () => {
22 |
> 23 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
24 | propsData: {
25 | inline: true
26 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:23:32)
● Message Component › renders icon successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
34 | it( 'renders icon successfully', () => {
35 |
> 36 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
37 | propsData: {}
38 | } );
39 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:36:32)
● Message Component › renders message › notice, if type is not passed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
46 | it( 'notice, if type is not passed', () => {
47 |
> 48 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
49 | propsData: {}
50 | } );
51 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:48:33)
● Message Component › renders message › notice, if type is passed as "notice"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
57 |
58 | const type = 'notice';
> 59 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
60 | propsData: {
61 | type
62 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:59:33)
● Message Component › renders message › warning, if type is passed as "warning"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
70 |
71 | const type = 'warning';
> 72 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
73 | propsData: {
74 | type
75 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:72:33)
● Message Component › renders message › error, if type is passed as "error"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
83 |
84 | const type = 'error';
> 85 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
86 | propsData: {
87 | type
88 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:85:33)
● Message Component › renders message › success, if type is passed as "success"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
96 |
97 | const type = 'success';
> 98 | const wrapper = VueTestUtils.shallowMount( Message, {
| ^
99 | propsData: {
100 | type
101 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/message.test.js:98:33)
FAIL tests/jest/components/base/checkbox.test.js
● Checkbox Component › Renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
7 |
8 | it( 'Renders successfully', () => {
> 9 | const wrapper = VueTestUtils.shallowMount( Checkbox, {
| ^
10 | propsData: {
11 | disabled: false,
12 | modelValue: true
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/checkbox.test.js:9:32)
● Checkbox Component › is disabled if disabled is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
19 |
20 | it( 'is disabled if disabled is passed as true', () => {
> 21 | const wrapper = VueTestUtils.shallowMount( Checkbox, {
| ^
22 | propsData: {
23 | disabled: true,
24 | modelValue: true
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/checkbox.test.js:21:32)
FAIL tests/jest/components/base/player.test.js
● Player Component › renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 | it( 'renders successfully', () => {
27 |
> 28 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
29 | propsData: {}
30 | } );
31 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:28:32)
● Player Component › renders src as "fallbackUrl"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
39 |
40 | const fallbackUrl = 'testurl';
> 41 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
42 | propsData: {
43 | fallbackUrl
44 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:41:32)
● Player Component › renders poster as "options.poster"
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
55 | poster: 'Cat Video'
56 | };
> 57 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
58 | propsData: {
59 | options
60 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:57:32)
● Player Component › emits "play" event when onPlay is called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
68 | it( 'emits "play" event when onPlay is called ', () => {
69 |
> 70 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
71 | propsData: { }
72 | } );
73 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:70:32)
● Player Component › calls player dispose method when component is destroyed
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
81 |
82 | const mockPlayerDispose = jest.fn();
> 83 | const wrapper = VueTestUtils.shallowMount( Player, {
| ^
84 | propsData: { }
85 | } );
86 |
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/player.test.js:83:32)
FAIL tests/jest/components/DidYouMean.test.js
● DidYoumean › Does not render DidYouMean component if state if empty
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
36 |
37 | it( 'Does not render DidYouMean component if state if empty', () => {
> 38 | const wrapper = shallowMount( Component, {
| ^
39 | global: {
40 | plugins: [ store ]
41 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/DidYouMean.test.js:38:19)
FAIL tests/jest/components/base/radio.test.js
● Radio Component › Renders successfully
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
6 |
7 | it( 'Renders successfully', () => {
> 8 | const wrapper = VueTestUtils.shallowMount( Radio, {
| ^
9 | propsData: {
10 | name: 'demo'
11 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/radio.test.js:8:32)
● Radio Component › renders the name property
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 |
18 | it( 'renders the name property', () => {
> 19 | const wrapper = VueTestUtils.shallowMount( Radio, {
| ^
20 | propsData: {
21 | disabled: true,
22 | name: 'demo'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/radio.test.js:19:32)
● Radio Component › is disabled if disabled is passed as true
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
29 |
30 | it( 'is disabled if disabled is passed as true', () => {
> 31 | const wrapper = VueTestUtils.shallowMount( Radio, {
| ^
32 | propsData: {
33 | disabled: true,
34 | name: 'demo'
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/radio.test.js:31:32)
● Radio Component › keydown causes a "click" event to be called
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
42 |
43 | it( 'keydown causes a "click" event to be called', () => {
> 44 | const wrapper = VueTestUtils.shallowMount( Radio, {
| ^
45 | propsData: {
46 | value: true
47 | }
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/base/radio.test.js:44:32)
FAIL tests/jest/components/NoResults.test.js
● Test suite failed to run
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
3 |
4 | describe( 'NoResults', () => {
> 5 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
6 |
7 | it( 'render the component', () => {
8 | const element = wrapper.find( '.sdms-no-results' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at tests/jest/components/NoResults.test.js:5:31
at Object.<anonymous> (tests/jest/components/NoResults.test.js:4:1)
FAIL tests/jest/components/EndOfResults.test.js
● Test suite failed to run
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
3 |
4 | describe( 'EndOfResults', () => {
> 5 | const wrapper = shallowMount( Component );
| ^
6 |
7 | it( 'render the component', () => {
8 | const element = wrapper.find( '.sdms-end-of-results' );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at tests/jest/components/EndOfResults.test.js:5:18
at Object.<anonymous> (tests/jest/components/EndOfResults.test.js:4:1)
FAIL tests/jest/components/EmptyState.test.js
● EmptyState › Does not render the component if sdmsTotalSiteImages is 0
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
17 | it( 'Does not render the component if sdmsTotalSiteImages is 0', () => {
18 | defineComponent( 0 );
> 19 | const wrapper = shallowMount( component );
| ^
20 | const element = wrapper.find( '.sdms-empty-state' );
21 | expect( element.exists() ).toBe( false );
22 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/EmptyState.test.js:19:19)
● EmptyState › when sdmsTotalSiteImages is greater than 0 › render the component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
26 | it( 'render the component', () => {
27 | defineComponent( 1 );
> 28 | const wrapper = shallowMount( component );
| ^
29 | const element = wrapper.find( '.sdms-empty-state' );
30 | expect( element.exists() ).toBe( true );
31 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/EmptyState.test.js:28:20)
● EmptyState › when sdmsTotalSiteImages is greater than 0 › render empty state icon
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
33 | it( 'render empty state icon', () => {
34 | defineComponent( 1 );
> 35 | const wrapper = shallowMount( component );
| ^
36 | const element = wrapper.find( '.sdms-empty-state__icon' );
37 | expect( element.exists() ).toBe( true );
38 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/EmptyState.test.js:35:20)
● EmptyState › when sdmsTotalSiteImages is greater than 0 › render message paragraph
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
40 | it( 'render message paragraph', () => {
41 | defineComponent( 1 );
> 42 | const wrapper = shallowMount( component );
| ^
43 | const element = wrapper.find( '.sdms-empty-state p' );
44 | expect( element.exists() ).toBe( true );
45 | } );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/EmptyState.test.js:42:20)
FAIL tests/jest/components/Spinner.test.js
● Spinner › render the component
TypeError: Cannot set properties of undefined (setting 'hasOwnProperty')
5 | it( 'render the component', () => {
6 |
> 7 | const wrapper = VueTestUtils.shallowMount( Component );
| ^
8 |
9 | const element = wrapper.find( '.sdms-spinner' );
10 | expect( element.exists() ).toBe( true );
at mount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8008:27)
at Object.shallowMount (node_modules/@vue/test-utils/dist/vue-test-utils.cjs.js:8017:12)
at Object.<anonymous> (tests/jest/components/Spinner.test.js:7:32)
Test Suites: 28 failed, 7 passed, 35 total
Tests: 273 failed, 232 passed, 505 total
Snapshots: 0 total
Time: 9.484 s
Ran all test suites.
--- stdout ---
> media-search@0.1.0 test
> grunt test && npm run test:unit
Running "eslint:all" (eslint) task
/src/repo/resources/components/App.vue
365:16 warning ES2015 'Array.prototype.find' method is forbidden es-x/no-array-prototype-find
/src/repo/resources/components/NamespaceFilterDialog.vue
136:5 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
146:11 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
/src/repo/resources/components/SearchFilters.vue
169:4 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
189:11 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
266:11 warning ES2015 'Array.prototype.find' method is forbidden es-x/no-array-prototype-find
285:21 warning ES2015 'Array.prototype.find' method is forbidden es-x/no-array-prototype-find
/src/repo/resources/components/SearchResults.vue
319:6 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
/src/repo/resources/components/base/Select.vue
372:21 warning ES2015 'Array.prototype.findIndex' method is forbidden es-x/no-array-prototype-findindex
/src/repo/resources/components/base/SelectMenu.vue
196:12 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
/src/repo/resources/components/base/Tabs.vue
123:61 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
178:19 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
186:20 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
193:19 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
209:18 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
/src/repo/resources/components/results/PageResult.vue
108:11 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
/src/repo/resources/ensureArray.js
18:10 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
/src/repo/resources/mixins/autocompleteLookupHandler.js
64:33 warning ES2015 RegExp 'u' flag is forbidden es-x/no-regexp-u-flag
64:33 warning ES2018 RegExp Unicode property escape sequences are forbidden es-x/no-regexp-unicode-property-escapes
65:18 warning ES2015 RegExp 'u' flag is forbidden es-x/no-regexp-u-flag
108:21 warning ES2015 RegExp 'u' flag is forbidden es-x/no-regexp-u-flag
108:21 warning ES2018 RegExp Unicode property escape sequences are forbidden es-x/no-regexp-unicode-property-escapes
/src/repo/resources/mixins/restoreHistoryHandler.js
57:5 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
/src/repo/resources/store/actions.js
143:16 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
151:5 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
162:21 warning ES2015 'Array.prototype.find' method is forbidden es-x/no-array-prototype-find
200:2 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
241:13 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
287:3 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
/src/repo/resources/store/getters.js
31:24 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
47:3 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
/src/repo/resources/store/mutations.js
45:15 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
149:20 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
152:36 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
217:4 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
241:3 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
242:4 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
254:3 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
268:22 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
297:3 warning ES2015 'Array.prototype.keys' method is forbidden es-x/no-array-prototype-keys
✖ 40 problems (0 errors, 40 warnings)
Running "stylelint:all" (stylelint) task
>> Linted 65 files without errors
Running "banana:0" (banana) task
>> 1 message directory checked.
Running "banana:1" (banana) task
>> 1 message directory checked.
Running "banana:2" (banana) task
>> 1 message directory checked.
Running "banana:3" (banana) task
>> 1 message directory checked.
Running "banana:4" (banana) task
>> 1 message directory checked.
Done.
> media-search@0.1.0 test:unit
> jest
----------------------------------|---------|----------|---------|---------|---------------------------------------------------------------------------------------------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------------------------------|---------|----------|---------|---------|---------------------------------------------------------------------------------------------------------------------
All files | 67.83 | 54.01 | 69.66 | 67.83 |
resources | 58.82 | 33.33 | 60 | 58.82 |
constants.js | 100 | 100 | 100 | 100 |
ensureArray.js | 0 | 0 | 0 | 0 | 15-24
getLocationAgnosticMwApi.js | 81.81 | 50 | 100 | 81.81 | 13,34
resources/components | 61.5 | 41.82 | 63.38 | 61.5 |
App.vue | 83.33 | 63.63 | 87.5 | 83.33 | 210-211,285,291,378-392,410-414
DidYouMean.vue | 100 | 100 | 100 | 100 |
EmptyState.vue | 50 | 100 | 0 | 50 | 26-33
EndOfResults.vue | 100 | 100 | 100 | 100 |
NamespaceFilterDialog.vue | 54.16 | 33.33 | 72.72 | 54.16 | 183-216
NoResults.vue | 100 | 100 | 100 | 100 |
QuickView.vue | 61.78 | 49.42 | 69.23 | 61.78 | 217,300,309-319,347-350,368,393-395,408,419,429-432,439-442,450,479,508-536,550,559-587,594-610,622,642,671-706,714
SearchError.vue | 100 | 100 | 100 | 100 |
SearchFilters.vue | 97.36 | 77.77 | 96.66 | 97.36 | 207,228
SearchResults.vue | 16.66 | 0 | 0 | 16.66 | 162-578
Spinner.vue | 100 | 100 | 100 | 100 |
UserNotice.vue | 71.42 | 83.33 | 80 | 71.42 | 59,68-70
resources/components/base | 68.16 | 64.54 | 70.94 | 68.16 |
AutocompleteSearchInput.vue | 90.74 | 95.45 | 92.59 | 90.74 | 239,411-427
Button.vue | 100 | 100 | 100 | 100 |
Checkbox.vue | 66.66 | 100 | 0 | 66.66 | 44
CopyTextLayout.vue | 100 | 100 | 100 | 100 |
Dialog.vue | 75 | 33.33 | 81.81 | 75 | 200-203,232-233
Icon.vue | 86.95 | 56.25 | 100 | 86.95 | 129-130,169
Image.vue | 58.33 | 60 | 75 | 58.33 | 86-89,100-101
Message.vue | 100 | 100 | 100 | 100 |
Observer.vue | 66.66 | 100 | 0 | 66.66 | 38
Player.vue | 10 | 0 | 0 | 10 | 24-70
Radio.vue | 66.66 | 100 | 0 | 66.66 | 55
Select.vue | 69.23 | 60 | 90.9 | 69.23 | 159,273-287,312-333,354
SelectMenu.vue | 95.83 | 100 | 100 | 95.83 | 205
Tab.vue | 22.22 | 100 | 0 | 22.22 | 43-60
Tabs.vue | 8.88 | 0 | 0 | 8.88 | 74-239
resources/components/base/mixins | 48 | 21.05 | 54.54 | 48 |
binaryInput.js | 75 | 100 | 66.66 | 75 | 46
observer.js | 42.85 | 21.05 | 50 | 42.85 | 48-81,109
resources/components/results | 90.16 | 56.25 | 100 | 90.16 |
AudioResult.vue | 100 | 100 | 100 | 100 |
ImageResult.vue | 92.85 | 0 | 100 | 92.85 | 112
OtherResult.vue | 88.88 | 70 | 100 | 88.88 | 78,92
PageResult.vue | 82.35 | 40 | 100 | 82.35 | 118,169,173
VideoResult.vue | 100 | 100 | 100 | 100 |
resources/mixins | 42.53 | 31.34 | 36.84 | 42.53 |
autocompleteLookupHandler.js | 9.25 | 0 | 10 | 9.25 | 38-212
restoreHistoryHandler.js | 51.35 | 25 | 42.85 | 51.35 | 40-83,99,113,144
searchResult.js | 75.75 | 61.11 | 75 | 75.75 | 60,82,106-125
searchResultTimeBased.js | 80 | 66.66 | 100 | 80 | 17,33
resources/models | 100 | 100 | 100 | 100 |
SearchFilter.js | 100 | 100 | 100 | 100 |
resources/plugins | 0 | 100 | 0 | 0 |
eventLogger.js | 0 | 100 | 0 | 0 | 6-22
resources/store | 91.6 | 76.43 | 93.33 | 91.6 |
actions.js | 90.62 | 82.82 | 83.87 | 90.62 | 71,100,128,150,167-168,227,235,300,356-364,409-410
getters.js | 100 | 100 | 100 | 100 |
index.js | 0 | 100 | 100 | 0 | 3-12
mutations.js | 100 | 100 | 100 | 100 |
state.js | 100 | 52.38 | 100 | 100 | 29-75
----------------------------------|---------|----------|---------|---------|---------------------------------------------------------------------------------------------------------------------
--- end ---
Traceback (most recent call last):
File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 1400, in main
libup.run(args.repo, args.output, args.branch)
File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 1338, in run
self.npm_upgrade(plan)
File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 1049, in npm_upgrade
self.npm_test()
File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/__init__.py", line 287, in npm_test
self.check_call(['npm', 'test'])
File "/venv/lib/python3.9/site-packages/runner-0.1.0-py3.9.egg/runner/shell2.py", line 54, in check_call
res.check_returncode()
File "/usr/lib/python3.9/subprocess.py", line 460, in check_returncode
raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['/usr/bin/npm', 'test']' returned non-zero exit status 1.