mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #386 from sharelatex/as-fixture-fix
Fixes frontend fixtures and improves command
This commit is contained in:
commit
2a7d367d1c
3 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
command: npm run test:frontend
|
command: npm run test:frontend -- --single-run
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
"test:acceptance:dir": "npm -q run test:acceptance:wait_for_app && npm -q run test:acceptance:run -- $@",
|
"test:acceptance:dir": "npm -q run test:acceptance:wait_for_app && npm -q run test:acceptance:run -- $@",
|
||||||
"test:acceptance": "npm -q run test:acceptance:dir -- $@ test/acceptance/js",
|
"test:acceptance": "npm -q run test:acceptance:dir -- $@ test/acceptance/js",
|
||||||
"test:unit": "npm -q run compile && bin/unit_test $@",
|
"test:unit": "npm -q run compile && bin/unit_test $@",
|
||||||
"test:frontend": "karma start --single-run",
|
"test:frontend": "karma start",
|
||||||
"compile": "make compile",
|
"compile": "make compile",
|
||||||
"start": "npm -q run compile && node $NODE_APP_OPTIONS app.js",
|
"start": "npm -q run compile && node $NODE_APP_OPTIONS app.js",
|
||||||
"nodemon": "nodemon --config nodemon.json",
|
"nodemon": "nodemon --config nodemon.json",
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
class Fixture {
|
class Fixture {
|
||||||
constructor () {
|
constructor () {
|
||||||
this.el = document.createElement('div')
|
this.el = document.createElement('div')
|
||||||
|
document.body.appendChild(this.el)
|
||||||
}
|
}
|
||||||
|
|
||||||
load (html) {
|
load (html) {
|
||||||
|
|
Loading…
Reference in a new issue