Commit Graph
28605 Commits
Author SHA1 Message Date
Alasdair Smith 47588880b9 Extract Mark to separate module 2018-03-02 10:37:12 +00:00
Alasdair Smith 9cc34c8af6 Copy paste latex parser from v1 with rich comment parsing
Rich comments are not being ported over to v2 as they are superseded by track
changes
2018-03-02 10:37:12 +00:00
James Allen 939eaa2d4b Don't allow a document to be loaded without a pathname 2018-03-02 10:02:49 +00:00
Brian Gough 14713aa393 added comment about project version 2018-03-01 15:15:09 +00:00
James Allen a5480e5f9e Merge pull request #376 from sharelatex/ja-restrict-backslash
Don't allow backslashes in file names
2018-03-01 15:10:05 +00:00
Alasdair Smith bd570be565 Merge pull request #371 from sharelatex/as-chai-eslint
Minor improvements to eslint config
2018-03-01 15:03:12 +00:00
Brian Gough af494dedf2 check project structure version in unit tests 2018-03-01 12:32:09 +00:00
Brian Gough e6020e2e9b update acceptance tests to include project structure version
this tests the version sent to the docupdater
2018-03-01 12:32:09 +00:00
Brian Gough 389f2d64ef prepare tests for versioning 2018-03-01 12:32:09 +00:00
Brian Gough 792c0135a0 update acceptance tests helper to include version 2018-03-01 12:32:09 +00:00
Brian Gough f7e70e8228 add acceptance tests 2018-03-01 12:32:09 +00:00
Brian Gough 12911598de send current project structure version to docupdater 2018-03-01 12:32:08 +00:00
Brian Gough 98f50919e8 comment about file replacements 2018-03-01 12:32:08 +00:00
Brian Gough 67d784a74a increment project version on every structure change 2018-03-01 12:32:08 +00:00
Brian Gough 470d67a3aa avoid exception in error message when project undefined 2018-03-01 12:31:51 +00:00
Brian Gough cb35da3cf7 increment a project version number on every change in folder structure 2018-03-01 12:17:33 +00:00
James Allen becb76d69b Don't allow backslashes in file names 2018-03-01 11:42:44 +00:00
Alasdair Smith 7ea164ef77 Add max line length rule, defaults to 80 chars 2018-02-28 12:15:53 +00:00
Alasdair Smith 6f58c60026 Configure eslint to be more friendly to chai assertions 2018-02-28 12:15:53 +00:00
Alasdair Smith 45e7482335 Install chai-expect and chai-friendly eslint plugins 2018-02-28 11:45:10 +00:00
Alasdair Smith be7c38dc4b Merge pull request #368 from sharelatex/revert-367-revert-366-as-upgrade-mocha
Revert "Revert "Upgrade to mocha 5.0.1""
2018-02-28 09:51:44 +00:00
Alasdair Smith 1f450085e9 Fix mocha complaining about returning Promise-like object 2018-02-27 15:57:40 +00:00
Alasdair Smith f11f208772 Revert "Revert "Upgrade to mocha 5.0.1"" 2018-02-27 15:03:21 +00:00
Alasdair Smith 5ab65a5707 Merge pull request #367 from sharelatex/revert-366-as-upgrade-mocha
Revert "Upgrade to mocha 5.0.1"
2018-02-27 12:26:35 +00:00
Alasdair Smith 315587605c Revert "Upgrade to mocha 5.0.1" 2018-02-27 12:25:42 +00:00
Michael Walker c7149cdf8d Merge pull request #42 from overleaf/revert-41-revert-39-msw-update-deps
Revert "Revert "Update dependencies to latest stable versions""
2018-02-27 11:51:41 +00:00
Michael Walker 3f1eb2b0c3 Revert "Revert "Update dependencies to latest stable versions"" 2018-02-27 11:51:02 +00:00
Michael Walker 43ae147a05 Merge pull request #41 from overleaf/revert-39-msw-update-deps
Revert "Update dependencies to latest stable versions"
2018-02-27 11:46:40 +00:00
Michael Walker e68271747b Revert "Update dependencies to latest stable versions" 2018-02-27 11:46:28 +00:00
Alasdair Smith 4524b3c9f6 Use mocha environment and expect global to fix linting in tests 2018-02-27 11:34:02 +00:00
Michael Walker e81931ef35 Merge pull request #40 from overleaf/msw-delete-temp-files
Small code improvements around temporary files
2018-02-27 11:16:57 +00:00
Michael Walker dc8368ad3c Merge pull request #39 from overleaf/msw-update-deps
Update dependencies to latest stable versions
2018-02-27 11:16:46 +00:00
Alasdair Smith 4c2790a71b Merge pull request #366 from sharelatex/as-upgrade-mocha
Upgrade to mocha 5.0.1
2018-02-27 11:06:34 +00:00
Alasdair Smith 864bf771a4 Merge pull request #362 from sharelatex/as-linting
Linting new ES code
2018-02-27 11:06:11 +00:00
Henry Oswald 5a2662e268 updated the docker compose file with working ldap example 2018-02-27 10:15:42 +00:00
Alasdair Smith 2a2eb23c78 Fix bug where tests from new ES code being included in requirejs wrapped code 2018-02-26 16:56:04 +00:00
Michael Walker 513e83fa00 Clean up temporary file if tarTo raises an exception 2018-02-26 16:30:08 +00:00
Alasdair Smith 19cec9451d Switch to using scoped variable instead of variables on context
Changes to mocha mean that a new context is passed to each describe block
instead of it persisting between them.

This means that this test cannot be parallelised, however this was the case
beforehand (subsequent tests are dependent on earlier tests).
2018-02-26 15:31:41 +00:00
Alasdair Smith 3217a3fbf0 Fix mocha complaining about returning Promise-like object 2018-02-26 15:31:34 +00:00
Alasdair Smith bd7e4908a2 Force mocha to exit after tests run 2018-02-26 15:30:56 +00:00
Michael Walker ddc524b588 Log an error if a DeletingFileInputStream is open at finalization 2018-02-26 14:48:18 +00:00
Alasdair Smith 46ac74a160 Fix incorrectly scoped variable 2018-02-26 14:26:04 +00:00
Alasdair Smith 2247e4d465 Fix scoping issues where stubs were defined in wrong describe blocks 2018-02-26 14:21:14 +00:00
Michael Walker 55cb41f5b2 Use DeletingFileInputStream in tar method 2018-02-26 14:19:02 +00:00
Alasdair Smith abf53625fe Fix scope not being applied through callback 2018-02-26 14:02:08 +00:00
Alasdair Smith 136fd84810 Fix module stub in incorrect scope 2018-02-26 13:52:58 +00:00
Alasdair Smith be6fa346d5 Fix bug where incorrect variable was used 2018-02-26 13:37:17 +00:00
Alasdair Smith ec7237b7e8 Fix callback stub being defined in wrong scope 2018-02-26 12:33:48 +00:00
Alasdair Smith 2529ed756a Fix callback being defined in wrong describe block 2018-02-26 12:27:54 +00:00
Alasdair Smith fd8c61985f Fix bug where stubs were attached to undefined variables 2018-02-26 12:19:56 +00:00