From: Eduardo San Martin Morote Date: Tue, 21 Jan 2020 17:22:21 +0000 (+0100) Subject: test: remove old code X-Git-Tag: v4.0.0-alpha.0~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=866152113b2373216c4223e2908e42ee58913d3e;p=thirdparty%2Fvuejs%2Frouter.git test: remove old code --- diff --git a/__tests__/__snapshots__/router-link.spec.ts.snap b/__tests__/__snapshots__/router-link.spec.ts.snap deleted file mode 100644 index 1187a0b7..00000000 --- a/__tests__/__snapshots__/router-link.spec.ts.snap +++ /dev/null @@ -1,5 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`RouterLink displays a link with a string prop 1`] = `"a link"`; - -exports[`RouterLink displays a link with an object with path prop 1`] = `"a link"`; diff --git a/__tests__/__snapshots__/router-view.spec.ts.snap b/__tests__/__snapshots__/router-view.spec.ts.snap deleted file mode 100644 index 745aae6d..00000000 --- a/__tests__/__snapshots__/router-view.spec.ts.snap +++ /dev/null @@ -1,24 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`RouterView displays current route component 1`] = `"
Home
"`; - -exports[`RouterView displays deeply nested views 1`] = ` -"
-

Nested

-
-

Nested

-
Foo
-
-
" -`; - -exports[`RouterView displays named views 1`] = `"
Foo
"`; - -exports[`RouterView displays nested views 1`] = ` -"
-

Nested

-
Foo
-
" -`; - -exports[`RouterView displays nothing when route is unmatched 1`] = `""`; diff --git a/__tests__/router-link.spec-skip.ts b/__tests__/router-link.spec-skip.ts index 5416a5a3..f71f9b9a 100644 --- a/__tests__/router-link.spec-skip.ts +++ b/__tests__/router-link.spec-skip.ts @@ -1,7 +1,6 @@ /** * @jest-environment jsdom */ -// NOTE: these tests only run when using jest `yarn jest --watch` import RouterLink from '../src/components/Link' import { START_LOCATION_NORMALIZED, @@ -9,7 +8,6 @@ import { MatcherLocation, RouteLocationNormalized, } from '../src/types' -import { mount } from '@vue/test-utils' import { createMemoryHistory } from '../src' const locations: Record< diff --git a/__tests__/router-view.spec-skip.ts b/__tests__/router-view.spec-skip.ts index 6d9ebfef..1ed1c061 100644 --- a/__tests__/router-view.spec-skip.ts +++ b/__tests__/router-view.spec-skip.ts @@ -1,14 +1,12 @@ /** * @jest-environment jsdom */ -// NOTE: these tests only run when using jest `yarn jest --watch` import RouterView from '../src/components/View' import { components } from './utils' import { START_LOCATION_NORMALIZED, RouteLocationNormalized, } from '../src/types' -import { mount } from '@vue/test-utils' const routes: Record = { root: {