File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2076,7 +2076,13 @@ adapters.forEach(function (adapter) {
2076
2076
// done();
2077
2077
// });
2078
2078
} else {
2079
- done ( new Error ( `No handling for server type: '${ serverType } '` ) ) ;
2079
+ // TODO revert to throwing for unknown. for now, we gotta assume something to get meaningful errors
2080
+ err . status . should . equal ( 404 ) ;
2081
+ err . json ( ) . then ( body => {
2082
+ body . reason . should . equal ( 'missing' ) ;
2083
+ done ( ) ;
2084
+ } ) . catch ( done ) ;
2085
+ //done(new Error(`No handling for server type: '${serverType}'`));
2080
2086
}
2081
2087
} ) ;
2082
2088
} else {
@@ -2120,6 +2126,7 @@ adapters.forEach(function (adapter) {
2120
2126
if ( serverType === 'couchdb' ) {
2121
2127
should . not . exist ( doc . _attachments ) ;
2122
2128
} else {
2129
+ // TODO revert to throwing for unknown serverType
2123
2130
doc . _attachments [ 'foo.txt' ] . content_type . should . equal ( 'text/plain' ) ;
2124
2131
doc . _attachments [ 'foo.txt' ] . data . should . equal ( 'VGhpcyBpcyBhIGJhc2U2NCBlbmNvZGVkIHRleHQ=' ) ;
2125
2132
}
You can’t perform that action at this time.
0 commit comments