UNPKG

@testim/testim-cli

Version:

Command line interface for running Testing on you CI

14 lines (11 loc) 447 B
describe('using the uploadFile helper', function() { before(h.setup()); var path = require('path'); var toUpload = path.join(__dirname, '..', '..', 'fixtures', 'cat-to-upload.gif'); it('uploads a file to the distant client', function() { return this.client.uploadFile(toUpload).then(function(res) { assert.ok(res.value); assert.ok(/cat\-to\-upload\.gif$/.test(res.value)); }); }); });