File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ describe('GET /catalog/:apiId/export', () => {
5353 } )
5454
5555 expect ( res . send ) . toHaveBeenCalledTimes ( 1 )
56- expect ( res . send . mock . calls [ 0 ] [ 0 ] ) . toContain ( 'data:application/zip;base64,' )
56+ expect ( res . send . mock . calls [ 0 ] [ 0 ] ) . toBeInstanceOf ( Buffer )
5757 } )
5858
5959 test ( 'it should not return SDKs for APIs not in the catalog' , async ( ) => {
Original file line number Diff line number Diff line change 11'use strict'
22
3- const Datauri = require ( 'datauri' )
43const util = require ( '../../util' )
54
65exports . get = async ( req , res ) => {
@@ -32,9 +31,6 @@ exports.get = async (req, res) => {
3231 parameters
3332 } ) . promise ( ) ) . body
3433
35- const datauri = new Datauri ( )
36- datauri . format ( '.zip' , resultsBuffer )
37-
38- res . send ( datauri . content )
34+ res . send ( resultsBuffer )
3935 }
4036}
You can’t perform that action at this time.
0 commit comments