spec: Set mimeType for protocol's handler
authorCheng Zhao <zcbenz@gmail.com>
Thu, 23 Jun 2016 04:29:18 +0000 (13:29 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 23 Jun 2016 04:29:18 +0000 (13:29 +0900)
spec/api-session-spec.js

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