Skip to content

Commit

Permalink
Update test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
elvingm committed Feb 12, 2016
1 parent 9ecf57a commit 8cb2a45
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
18 changes: 8 additions & 10 deletions test/fixtures/basic/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ module.exports =
ignores: ["**/.DS_Store"]
extensions: [
netlify
redirects:
'/news': '/blog'
'/news/:year/:month:/:date/:slug': '/blog/:year/:month/:date/:story_id'
'/news/*': '/blog/:splat'
'302':
'/temp_redirect': '/'
'404':
'/ecommerce': '/closed'
rewrites:
'/*': '/index.html'
redirects: [
'/* /index.html 200'
'/news /blog 301'
'/news/:year/:month:/:date/:slug /blog/:year/:month/:date/:story_id 301'
'/news/* /blog/:splat 301'
'/temp_redirect / 302'
'/ecommerce /closed 404'
]
headers:
'/protected/path':
'Cache-Control': 'max-age: 3000'
Expand Down
18 changes: 8 additions & 10 deletions test/fixtures/promises/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ netlify = require '../../..'
W = require 'when'

config =
redirects:
'/news': '/blog'
'/news/:year/:month:/:date/:slug': '/blog/:year/:month/:date/:story_id'
'/news/*': '/blog/:splat'
'302':
'/temp_redirect': '/'
'404':
'/ecommerce': '/closed'
rewrites:
'/*': '/index.html'
redirects: [
'/* /index.html 200'
'/news /blog 301'
'/news/:year/:month:/:date/:slug /blog/:year/:month/:date/:story_id 301'
'/news/* /blog/:splat 301'
'/temp_redirect / 302'
'/ecommerce /closed 404'
]
headers:
'/protected/path':
'Cache-Control': 'max-age: 3000'
Expand Down

0 comments on commit 8cb2a45

Please sign in to comment.