File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ module.exports = function (app) {
3636 app . use ( '/dist' , express . static ( 'dist' ) )
3737 app . use ( '/events' , require ( './events' ) )
3838 app . use ( require ( './categories-for-support-team' ) )
39- app . use ( require ( './enterprise-data-endpoint' ) )
4039 app . use ( require ( './detect-language' ) )
4140 app . use ( asyncMiddleware ( require ( './context' ) ) )
4241 app . use ( '/csrf' , require ( './csrf-route' ) )
Original file line number Diff line number Diff line change @@ -163,24 +163,6 @@ describe('server', () => {
163163 } )
164164 } )
165165
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-
184166 test ( 'renders Markdown links that have Liquid hrefs' , async ( ) => {
185167 // example from markdown source:
186168 // 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