Skip to content

Commit

Permalink
De-dupe extra escape regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Jan 27, 2020
1 parent d9ee71c commit 2e8ef84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/integration/getserverprops/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import fs from 'fs-extra'
import { join } from 'path'
import webdriver from 'next-webdriver'
import cheerio from 'cheerio'
import escapeRegex from 'escape-string-regexp'
import {
renderViaHTTP,
fetchViaHTTP,
Expand All @@ -23,8 +24,6 @@ let app
let appPort
let buildId

const escapeRegex = str => str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&')

const expectedManifestRoutes = () => ({
'/something': {
page: '/something',
Expand Down

0 comments on commit 2e8ef84

Please sign in to comment.