Skip to content

Commit

Permalink
style: Lint changes for utilities spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Feb 1, 2019
1 parent c3662db commit 8cc52fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cypress/integration/examples/utilities.spec.js
Expand Up @@ -51,21 +51,21 @@ context('Utilities', () => {
})
expect(matching, 'matching wildcard').to.be.true

matching = Cypress.minimatch("/users/1/comments/2", "/users/*/comments", {
matchBase: true
matching = Cypress.minimatch('/users/1/comments/2', '/users/*/comments', {
matchBase: true,
})
expect(matching, 'comments').to.be.false

// ** matches against all downstream path segments
matching = Cypress.minimatch("/foo/bar/baz/123/quux?a=b&c=2", "/foo/**", {
matchBase: true
matching = Cypress.minimatch('/foo/bar/baz/123/quux?a=b&c=2', '/foo/**', {
matchBase: true,
})
expect(matching, 'comments').to.be.true

// whereas * matches only the next path segment

matching = Cypress.minimatch("/foo/bar/baz/123/quux?a=b&c=2", "/foo/*", {
matchBase: false
matching = Cypress.minimatch('/foo/bar/baz/123/quux?a=b&c=2', '/foo/*', {
matchBase: false,
})
expect(matching, 'comments').to.be.false
})
Expand Down

0 comments on commit 8cc52fe

Please sign in to comment.