message: test: improve matcher add/remove tests
diff: @@ -158,6 +158,7 @@ describe('Matcher: adding and removing records', () => {
  const matcher = createRouterMatcher([], {})
  matcher.addRoute({ path: '/', component, name: 'home' })
  matcher.removeRoute('home')
  + expect(matcher.getRoutes()).toHaveLength(0)
  expect(matcher.resolve({ path: '/' }, currentLocation)).toMatchObject({
  name: undefined,
  matched: [],
  @@ -200,7 +201,9 @@ describe('Matcher: adding and removing records', () => {
  ],
  })
  + expect(matcher.getRoutes()).toHaveLength(2)
  matcher.removeRoute('child')
  + expect(matcher.getRoutes()).toHaveLength(1)
  expect(matcher.resolve({ path: '/about' }, currentLocation)).toMatchObject({
  name: undefined,
  @@ -230,6 +233,7 @@ describe('Matcher: adding and removing records', () => {
  })
  matcher.removeRoute('home')
  + expect(matcher.getRoutes()).toHaveLength(0)
  expect(matcher.resolve({ path: '/about' }, currentLocation)).toMatchObject({
  name: undefined,
  @@ -249,6 +253,7 @@ describe('Matcher: adding and removing records', () => {
  })
  matcher.removeRoute('home')
  + expect(matcher.getRoutes()).toHaveLength(0)
  expect(matcher.resolve({ path: '/start' }, currentLocation)).toMatchObject({
  name: undefined,
  @@ -283,6 +288,7 @@ describe('Matcher: adding and removing records', () => {
  })
  matcher.removeRoute('home')
  + expect(matcher.getRoutes()).toHaveLength(0)
  ;[
  '/',
  '/start',
  @@ -325,6 +331,8 @@ describe('Matcher: adding and removing records', () => {
  matcher.removeRoute('child')
  + expect(matcher.getRoutes()).toHaveLength(2)
  +
  expect(matcher.resolve({ path: '/about' }, currentLocation)).toMatchObject({
  name: undefined,
  matched: [],
  