File tree Expand file tree Collapse file tree 3 files changed +0
-28
lines changed Expand file tree Collapse file tree 3 files changed +0
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ module.exports = function (app) {
36
36
app . use ( '/dist' , express . static ( 'dist' ) )
37
37
app . use ( '/events' , require ( './events' ) )
38
38
app . use ( require ( './categories-for-support-team' ) )
39
- app . use ( require ( './enterprise-data-endpoint' ) )
40
39
app . use ( require ( './detect-language' ) )
41
40
app . use ( asyncMiddleware ( require ( './context' ) ) )
42
41
app . use ( '/csrf' , require ( './csrf-route' ) )
Original file line number Diff line number Diff line change @@ -163,24 +163,6 @@ describe('server', () => {
163
163
} )
164
164
} )
165
165
166
- test ( 'serves publicly accessible /enterprise.json' , async ( ) => {
167
- const res = await get ( '/enterprise.json' )
168
-
169
- // check for CORS header
170
- expect ( res . headers [ 'access-control-allow-origin' ] ) . toBe ( '*' )
171
-
172
- const enterpriseData = JSON . parse ( res . text )
173
- expect ( Object . keys ( enterpriseData ) . length ) . toBe ( 2 )
174
- expect ( enterpriseData . enterpriseDates [ '2.0' ] . releaseDate ) . toBe ( '2014-11-11' )
175
- expect ( enterpriseData . enterpriseDates [ '2.15' ] . deprecationDate ) . toBe ( '2019-10-16' )
176
- expect ( enterpriseData . enterpriseVersions . supported . length ) . toBeGreaterThan ( 2 )
177
- expect ( enterpriseData . enterpriseVersions . deprecated . length ) . toBeGreaterThan ( 16 )
178
- expect ( typeof enterpriseData . enterpriseVersions . latest ) . toBe ( 'string' )
179
- expect ( typeof enterpriseData . enterpriseVersions . oldestSupported ) . toBe ( 'string' )
180
- expect ( typeof enterpriseData . enterpriseVersions . nextDeprecationDate ) . toBe ( 'string' )
181
- expect ( enterpriseData . enterpriseVersions . deprecatedOnNewSite . length ) . toBeGreaterThan ( 2 )
182
- } )
183
-
184
166
test ( 'renders Markdown links that have Liquid hrefs' , async ( ) => {
185
167
// example from markdown source:
186
168
// 1. Go to {{ site.data.variables.product.product_name }}'s [Pricing]({{ site.data.variables.dotcom_billing.plans_url }}) page.
You can’t perform that action at this time.
0 commit comments