blob: 822cefc54012f5637d64815b958a47ed4c7d1d31 [file] [log] [blame]
'use strict';
var copyDocument = require('../../helpers/unit').unit([
'document',
'copy'
]);
var copyDocumentFail = require('../../helpers/unit').unit([
'document',
'copy'
], new Error('OMG This sucks'));
copyDocument('excel', 'numbers', {
headers: {
'Destination': 'numbers',
'accept': 'application/json',
'content-type': 'application/json'
},
method: 'COPY',
uri: '/mock/excel'
});
copyDocumentFail('excel', 'numbers', {overwrite: 'yes'}, {
});