From 3ec86215aa444ca34f19e1a7dba434e0c46791a0 Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 18 Dec 2014 13:32:47 +1300 Subject: [PATCH] Fix tests to check config from base `rest.wrap` --- rest/rest-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/rest-tests.ts b/rest/rest-tests.ts index 4ffe17d21..b19416c11 100644 --- a/rest/rest-tests.ts +++ b/rest/rest-tests.ts @@ -15,7 +15,7 @@ client({ path: '/data.json' }).then(function(response) { console.log('response: ', response); }); -client = rest.wrap(mime).wrap(errorCode, { code: 500 }); +client = rest.wrap(mime, { mime: 'application/json' }).wrap(errorCode, { code: 500 }); client({ path: '/data.json' }).then( function(response) { console.log('response: ', response);