Skip to content
Myr

lint: fix broken indentation in tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 4f291e7 · Browse files · 2 files+14 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+14 added−14 removed

  • tests:+14 added−14 removed

2 files+14 added−14 removed

modified:test/req.ip.js+2 added-2 removed
modified:test/res.sendFile.js+12 added-12 removed
155 unmodified lines
156157 describe('with "headers" option', function () {158 it('should accept headers option', function (done) {159 var headers = {160 'x-success': 'sent',161 'x-other': 'done'160 'x-success': 'sent',161 'x-other': 'done'162 };163 var app = createApp(path.resolve(__dirname, 'fixtures/name.txt'), { headers: headers });164165 request(app)
343 unmodified lines
509510 it('should accept headers option', function(done){511 var app = express();512 var headers = {513 'x-success': 'sent',514 'x-other': 'done'513 'x-success': 'sent',514 'x-other': 'done'515 };516517 app.use(function(req, res){518 res.sendfile('test/fixtures/user.html', { headers: headers });
210 unmodified lines
729 })730 })731})732733 describe('.sendfile(path, options)', function () {734 it('should pass options to send module', function (done) {735 var app = express()733describe('.sendfile(path, options)', function () {734 it('should pass options to send module', function (done) {735 var app = express()736737 app.use(function (req, res) {738 res.sendfile(path.resolve(fixtures, 'name.txt'), { start: 0, end: 1 })739 })737 app.use(function (req, res) {738 res.sendfile(path.resolve(fixtures, 'name.txt'), { start: 0, end: 1 })739 })740741 request(app)741 request(app)742 .get('/')743 .expect(200, 'to', done)744 })744 })745})746747function createApp(path, options, fn) {748 var app = express();749
6 unmodified lines