mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Fix up smoke tests
This commit is contained in:
parent
46b36839e2
commit
5587ac0acb
4 changed files with 18 additions and 15 deletions
|
@ -80,7 +80,7 @@ module.exports = (grunt) ->
|
|||
grunt.loadNpmTasks 'grunt-mocha-test'
|
||||
grunt.loadNpmTasks 'grunt-shell'
|
||||
|
||||
grunt.registerTask 'compile:app', ['clean:app', 'coffee:app', 'coffee:app_src']
|
||||
grunt.registerTask 'compile:app', ['clean:app', 'coffee:app', 'coffee:app_src', 'coffee:smoke_tests']
|
||||
grunt.registerTask 'run', ['compile:app', 'concurrent']
|
||||
|
||||
grunt.registerTask 'compile:unit_tests', ['clean:unit_tests', 'coffee:unit_tests']
|
||||
|
|
|
@ -14,7 +14,7 @@ module.exports =
|
|||
compilesDir: Path.resolve(__dirname + "/../compiles")
|
||||
clsiCacheDir: Path.resolve(__dirname + "/../cache")
|
||||
|
||||
clsi:
|
||||
# clsi:
|
||||
# commandRunner: "docker-runner-sharelatex"
|
||||
# docker:
|
||||
# image: "quay.io/sharelatex/texlive-full"
|
||||
|
@ -27,7 +27,7 @@ module.exports =
|
|||
internal:
|
||||
clsi:
|
||||
port: 3013
|
||||
host: ""
|
||||
host: "localhost"
|
||||
|
||||
apis:
|
||||
clsi:
|
||||
|
|
|
@ -2,9 +2,9 @@ chai = require("chai")
|
|||
chai.should()
|
||||
expect = chai.expect
|
||||
request = require "request"
|
||||
Settings = require "../../../app/js/Settings"
|
||||
Settings = require "settings-sharelatex"
|
||||
|
||||
buildUrl = (path) -> "http://localhost:#{Settings.listen.port}/#{path}"
|
||||
buildUrl = (path) -> "http://#{Settings.internal.clsi.host}:#{Settings.internal.clsi.port}/#{path}"
|
||||
|
||||
describe "Running a compile", ->
|
||||
before (done) ->
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
|
||||
request = require("request");
|
||||
|
||||
Settings = require("../../../app/js/Settings");
|
||||
Settings = require("settings-sharelatex");
|
||||
|
||||
buildUrl = function(path) {
|
||||
return "http://localhost:" + Settings.listen.port + "/" + path;
|
||||
return "http://" + Settings.internal.clsi.host + ":" + Settings.internal.clsi.port + "/" + path;
|
||||
};
|
||||
|
||||
describe("Running a compile", function() {
|
||||
|
@ -34,6 +34,9 @@
|
|||
_this.error = error;
|
||||
_this.response = response;
|
||||
_this.body = body;
|
||||
if (_this.error != null) {
|
||||
throw _this.error;
|
||||
}
|
||||
return done();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue