]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: remove old code
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 21 Jan 2020 17:22:21 +0000 (18:22 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 21 Jan 2020 17:22:21 +0000 (18:22 +0100)
__tests__/__snapshots__/router-link.spec.ts.snap [deleted file]
__tests__/__snapshots__/router-view.spec.ts.snap [deleted file]
__tests__/router-link.spec-skip.ts
__tests__/router-view.spec-skip.ts

diff --git a/__tests__/__snapshots__/router-link.spec.ts.snap b/__tests__/__snapshots__/router-link.spec.ts.snap
deleted file mode 100644 (file)
index 1187a0b..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`RouterLink displays a link with a string prop 1`] = `"<a href=\\"/home\\">a link</a>"`;
-
-exports[`RouterLink displays a link with an object with path prop 1`] = `"<a href=\\"/home\\">a link</a>"`;
diff --git a/__tests__/__snapshots__/router-view.spec.ts.snap b/__tests__/__snapshots__/router-view.spec.ts.snap
deleted file mode 100644 (file)
index 745aae6..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`RouterView displays current route component 1`] = `"<div>Home</div>"`;
-
-exports[`RouterView displays deeply nested views 1`] = `
-"<div>
-  <h2>Nested</h2>
-  <div>
-    <h2>Nested</h2>
-    <div>Foo</div>
-  </div>
-</div>"
-`;
-
-exports[`RouterView displays named views 1`] = `"<div>Foo</div>"`;
-
-exports[`RouterView displays nested views 1`] = `
-"<div>
-  <h2>Nested</h2>
-  <div>Foo</div>
-</div>"
-`;
-
-exports[`RouterView displays nothing when route is unmatched 1`] = `""`;
index 5416a5a3369dcffd25cf753770f67b714ae6d848..f71f9b9a8340ed5b8794b22e318ad8f4fe34511f 100644 (file)
@@ -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<
index 6d9ebfefbac8f8965f6d5c8eb05a5d88e4ea90c8..1ed1c061c8f9106a8a950cdf311f66f9ef384d94 100644 (file)
@@ -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<string, RouteLocationNormalized> = {
   root: {