This commit is contained in:
Kevin Sawicki 2016-11-11 09:22:45 -08:00
parent 5f596b22c7
commit 50019f39e9
2 changed files with 11 additions and 12 deletions

View file

@ -29,15 +29,15 @@ describe('browser-window module', function () {
const fileStats = fs.statSync(filePath)
postData = [
{
'type': 'rawData',
'bytes': new Buffer('username=test&file=')
type: 'rawData',
bytes: new Buffer('username=test&file=')
},
{
'type': 'file',
'filePath': filePath,
'offset': 0,
'length': fileStats.size,
'modificationTime': fileStats.mtime.getTime() / 1000
type: 'file',
filePath: filePath,
offset: 0,
length: fileStats.size,
modificationTime: fileStats.mtime.getTime() / 1000
}
]
server = http.createServer(function (req, res) {