Skip to content

Commit 945d2ab

Browse files
committed
💚 Fix tests
1 parent 8e58fb6 commit 945d2ab

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

test/express/https-redirect-test.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,19 @@ describe('https-redirect', function() {
2828
});
2929
});
3030

31-
it('should not redirect', function(done) {
31+
it('should not redirect (local)', function(done) {
3232
request(app)
3333
.get('/test')
3434
.expect(200)
3535
.expect("Hello World!", done);
3636
});
37+
38+
it('should not redirect (https)', function(done) {
39+
request(app)
40+
.get('/test')
41+
.set('HOST', 'stg-abc.leanapp.cn')
42+
.set('X-Forwarded-Proto', 'https')
43+
.expect(200)
44+
.expect("Hello World!", done);
45+
});
3746
});

test/function-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe('functions', function() {
147147
__type: 'File',
148148
objectId: '55543fc2e4b0846760bd92f3',
149149
name: 'ttt.jpg',
150-
url: 'http://ac-4h2h4okw.clouddn.com/4qSbLMO866Tf4YtT9QEwJwysTlHGC9sMl7bpTwhQ.jpg'
150+
url: 'http://lc-4h2h4okw.cn-n1.lcfile.com/4qSbLMO866Tf4YtT9QEwJwysTlHGC9sMl7bpTwhQ.jpg'
151151
});
152152

153153
result.avObjects.forEach(function(object) {

0 commit comments

Comments
 (0)