spec: Set mimeType for protocol's handler

This commit is contained in:
Cheng Zhao 2016-06-23 13:29:18 +09:00
parent a04c0ce196
commit 2893974c05

View file

@ -275,7 +275,7 @@ describe('session module', function () {
const partitionProtocol = session.fromPartition(partitionName).protocol const partitionProtocol = session.fromPartition(partitionName).protocol
const protocol = session.defaultSession.protocol const protocol = session.defaultSession.protocol
const handler = function (error, callback) { const handler = function (error, callback) {
callback({data: 'test'}) callback({data: 'test', mimeType: 'text/html'})
} }
beforeEach(function (done) { beforeEach(function (done) {