Commit Graph

736 Commits (816973906980ceb0cc6ac5ab47b52a402b6361c1)

Author SHA1 Message Date
Julian Lam 860999fa6c Merge remote-tracking branch 'origin/master' into develop
psychobunny a67d48e719 ()
closes 
barisusakli 0c8058ba9d closes
barisusakli 3d719eec99 enable sigs after test
barisusakli 8d493bf3b0 post parse test
barisusakli 57691d9ad8 test for system group rename
Julian Lam af2d9fb85b Merge branch 'master' into develop
barisusakli e85e35cf0c closes
barisusakli ab9f4ad636 test bookmark tru socket.io
barisusakli 324e5be7bd privileges tests
barisusakli 4369a6d290 more user tests
barisusakli 63b3c29a1a test invalid data
barisusakli cd448f90cd more topic tests
barisusakli 5ca8456340 move image code to client/topic/images
barisusakli d60930a51d test latest member posts
barisusakli 65cf7a01ec test for recent posts, fix redirect test
Julian Lam 45c479a101 Merge branch 'master' into develop
barisusakli 2e47cf4db3 intersititial test
barisusakli 8a0cf6c0ac more admin socket tests
Julian Lam b1ceec7571 Merge remote-tracking branch 'origin/master' into develop
barisusakli 0e7740af32 fix tests for subfolder installs
barisusakli 347761173a helpers tests
Julian Lam 15542f1382 removing old tests that got added back in due to git being silly
Julian Lam 6e7b505ea7 more linting
Julian Lam ddea9f534e running eslint again
Julian Lam 72e77772db Merge branch 'master' into develop
Julian Lam 995f8296a4 linting
Julian Lam e71bd7a27f Merge branch 'master' into styleguide
barisusakli 048eb8a320 some helper tests
barisusakli 04b07e292c thumb tests
barisusakli ca1fe557c7 topic controller tests
barisusakli 3a87f2566a more group tests
barisusakli b7d5bc7dc8 more group tests
Peter Jaszkowiak dd2b930824 Resolve merge conflicts, minify only `.js` files
Peter Jaszkowiak ee9d7584e4 Fix test, misc
Barış Soner Uşaklı 35ff71c37d more tests
Julian Lam c09f994b0a Merge remote-tracking branch 'origin/master' into develop
Julian Lam a9f144230e Merge branch 'master' into develop
Barış Soner Uşaklı 743f758f75 set origin header to url
Barış Soner Uşaklı c168ed43d4 up build timeout
Julian Lam 672d7352bb Merge branch 'master' into develop
barisusakli 09d0ce4778 post tests
barisusakli 2dac3d2292 closes , blacklist tests
barisusakli 5c01c7b1c7 delayed notification test
Julian Lam 62e0f5f883 Merge remote-tracking branch 'origin/master' into develop
Barış Soner Uşaklı 89380824f8 navigation test
barisusakli f2a795a9b7 fix tests
barisusakli 799f688503 closes , invitation tests
barisusakli 4ee7edad64 test uploadProfileImageFromUrl
barisusakli ef90702049 closes
Peter Jaszkowiak 23540afaeb Resolve merge conflicts
Peter Jaszkowiak 93f38d4f30 ESlint no-multi-assign
and max-nested-callbacks, no-mixed-requires, max-statements-per-line
Peter Jaszkowiak 4bb49a7171 ESlint no-unused-vars
Peter Jaszkowiak c18808fdeb ESlint no-useless-concat, no-mixed-spaces-and-tabs
Peter Jaszkowiak fdf4f873bf ESlint eqeqeq
and require-jsdoc, no-negated-condition
Peter Jaszkowiak 09e868ce5f ESlint no-useless-escape, no-else-return
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
barisusakli 7842c3411c remove logs
barisusakli b33d34f7cf refactor user/picture.js
Peter Jaszkowiak 1493afee2a ESlint indent
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks
Peter Jaszkowiak feb8405f95 ESlint eol-last
Peter Jaszkowiak f3a8256f35 ESlint strict
Peter Jaszkowiak a038c66549 ESlint quotes
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces
Peter Jaszkowiak 2e031f3759 ESlint comma-spacing
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces
Peter Jaszkowiak 34e233fe1d ESlint spaced-comment
Peter Jaszkowiak 532951c24f ESlint space-in-parens, block-spacing
Peter Jaszkowiak 3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
Peter Jaszkowiak d7526b5e44 ESlint array-bracket-spacing
and object-property-newline
Peter Jaszkowiak 52f2028206 ESlint no-multiple-empty-lines
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
pichalite aacd8a2422 Fix return and tests
Julian Lam fcaefbadca Merge remote-tracking branch 'origin/master' into develop
barisusakli 4d8d23830d utils tests
barisusakli 4bbf517af3 rewards test
barisusakli 9f67142786 closes
Julian Lam 7f124a3ccf Merge branch 'master' into develop
barisusakli f4a6527ce6 getRecentPosterUids test
Julian Lam 7ba111acdd Merge pull request from NodeBB/assets-route
/assets/uploads
Julian Lam a17c26ea45 Merge branch 'master' into develop
barisusakli 667582744e fix eslint
barisusakli ab7867d4b5 topic follow tests, fix filterIgnoring
Peter Jaszkowiak aaacdb8413 Fix , uploads path config setting
- Finish moving uploads route to `/assets/uploads`
- Remove `upload_url` config setting, it was broken
Julian Lam 8a0a74d95e Merge remote-tracking branch 'origin/master' into develop
Julian Lam b5daedb7a3 Merge remote-tracking branch 'origin/master' into develop
Peter Jaszkowiak bb1bfb0449 Merge branch 'master' into assets-route
barisusakli 959315c8f7 test admin/search
Peter Jaszkowiak fdad66f58e Revert "Fix tests to use default activated plugin"
This reverts commit 44a59ac435.
Peter Jaszkowiak 44a59ac435 Fix tests to use default activated plugin
Julian Lam bfd16d188e Merge branch 'master' into develop
barisusakli e3a2e13438 build test
Peter Jaszkowiak 360a35d0a6 Resolve merge conflicts
Peter Jaszkowiak 553567c3b2 Refactor `nodebb`, move `build.js`, add `--dev`
barisusakli 5c217e873e build all targets before test
barisusakli 366ab103a4 closes
barisusakli f1f00b63fb closes
Peter Jaszkowiak 001aa3d1a8 Fix tests, npm Windows fixes
Julian Lam 48909e753c Merge branch 'master' into develop
Dominic Lennon 691b46d38b Fixing lint issues
Dominic Lennon f0add97cf9 Fixing tests
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
Julian Lam 10f270d016 adding byPid zset for flags
Julian Lam 3861b2dd80 Merge remote-tracking branch 'origin/master' into develop
Julian Lam 541f51e947 restrict flags interface so that moderators only see flags from cids they can actually moderate
barisusakli 6b2dde02b5 closes
pichalite a0ff3734cf Add more user tests
pichalite 0ea477abde Add more user tests
Julian Lam 29c7ae7645 Merge remote-tracking branch 'origin/master' into develop
Barış Soner Uşaklı c4d4d2385b closes closes
barisusakli a1af59def3 add missing return, fix tests
Julian Lam c640bdf2b9 Merge branch 'master' into develop
barisusakli 988c485874 post tools test
barisusakli a0c217446a fix missing semicolon
barisusakli caacae093d fix tests
barisusakli f8d958e065 rooms.getAll test
barisusakli 1fed01fe43 ability to filter search by tags
Julian Lam 76bcc1c327 Merge branch 'flagging-refactor' into develop
Julian Lam 07ac7dce84 minor tweaks to test to be redis-compatible
Julian Lam 5e52cfdf86 removed one more old flag test for
Julian Lam 47c9c93693 removed old flagging tests
Julian Lam ad633aad45 additional tests and proper handling for purged flag targets,
Julian Lam 7b471b76db fixing tests for
Barış Soner Uşaklı 4ff3d06f90 escape labelColor, icon, cover:position, validate toPid
barisusakli 009da723c5 meta.configs tests
barisusakli 975141bc9b more tag tests
barisusakli 835669805a tag tests
barisusakli 3bd1c6c2b5 notification tests
barisusakli 55b68197aa closes
Julian Lam 0927d54c98 ability to filter flags by cid, , more tests
Julian Lam ebffc44600 fix tests,
Julian Lam 380ebf67ee oops, uncommenting all the other tests for flags
Julian Lam 831c2064a0 For , added tests and returning flag data on socket flag creation
Julian Lam 451c2838d0 Merge remote-tracking branch 'origin/master' into flagging-refactor
Barış Soner Uşaklı 1f52048866 Merge pull request from Fusselwurm/patch-2
ZSET scores are float: parseInt => parseFloat
Julian Lam e227f5842a Merge remote-tracking branch 'origin/master' into flagging-refactor
Moritz Schmidt ec5d13188b sneakily adjust database/sorted tests to include float scores
Peter Jaszkowiak bb5fe0cc83 Escape arguments in `Translator.compile`
Peter Jaszkowiak a81aad61ab Add tests for translator static methods
Peter Jaszkowiak 375af7ad53 Restructure and rename translator tests
Peter Jaszkowiak 7c697759e9 Escape and ignore `%` and `\,` in translator args
barisusakli 1c6cee207f meta/settings test
Julian Lam dc508fa0cb Merge remote-tracking branch 'origin/master' into flagging-refactor
barisusakli 0b9829850c closes
Julian Lam 5d63c0aa3b Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam 5dd892bd01 a bunch of changes here... allowing user profiles to be flagged,
barisusakli 74b9f1a016 closes
Julian Lam 57fcb92bbc added a smattering of tests for
psychobunny 6b7b51eaf0 Merge pull request from pitaj/master
ACP search updated to support translations
Peter Jaszkowiak 9fd64549a3 Use async instead of Promises
Julian Lam b7217e8841 Merge remote-tracking branch 'origin/master' into flagging-refactor
barisusakli cbd6853ccb notif controller test
barisusakli 8691256a67 fix post move test
barisusakli 7d47f4b067 tag tests
Julian Lam dde3d2b135 Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam 33ff5e09bb updated revoke session middleware to allow self or admin or global mod invocation, tweaked tests a bit
barisusakli aad9a39f02 move post test
barisusakli 55416911f7 category tests
barisusakli 69b766bbc8 more tests
barisusakli 1440139903 more tests
barisusakli 091f459f5e search socket test
barisusakli 4b6e4f085d more tests
group cover upload tests
registration approval queue tests
Julian Lam c36fe3389e Merge remote-tracking branch 'origin/master' into flagging-refactor
Peter Jaszkowiak 5223bb5191 Merge branch 'master' of github.com:nodebb/nodebb
barisusakli 7f90e31a38 more socket user tests
barisusakli c3980d0c2e follow tests
Julian Lam c5b9c1e2a4 Merge remote-tracking branch 'origin/master' into flagging-refactor
Julian Lam e9ff605a20 some more tests for
barisusakli 9ba93d8be9 group search tests
barisusakli ea007e2da4 closes
barisusakli 02aadf79b5 account/posts controller tests
barisusakli a4ebb7f56e test plugin static assets
Julian Lam 0bf82c0e47 Merge branch 'master' into flagging-refactor
Peter Jaszkowiak de6ced4e07 Tests for admin search, simplifications
barisusakli 49267d54b7 topics unread tests
barisusakli 2f92ce1527 check deps on test
barisusakli dff4ee767c more group tests
Julian Lam 9f7c4befea omg tests (), and .create returns flag data now
barisusakli c33d3e874a store pinned topics in new zset
keep pinned topics on top on different sort types
barisusakli d4638ffc15 fix test dont turn single pages into ...
barisusakli b807915515 removed incorrect markread nid
barisusakli 4b815449f1 closes
Peter Jaszkowiak c5237443cd Standard language codes ()
* Use standard language codes. Fallback for plugins.

* Fix transifex config

* Tab vs space here for some reason

* Remove redundancies

* config.relative_path instead of allcaps

* added upgrade script for existing users' accounts
barisusakli 5d6e2ad083 multiple test fixes
barisusakli f754c8b7df digest test
barisusakli 60b3db7b34 dont use hardcoded uid
barisusakli d2fa0c3e6a vote socket tests
barisusakli 1658ebbe20 categories update test
barisusakli ce2d702117 account group page test
barisusakli 86deeaaf39 more group tests
barisusakli cecb4c0403 some more group tests
barisusakli 4d86262812 use global mod user for flag tests
barisusakli 584cfd09ef suggested topics test
barisusakli 0794e395d5 fix test
barisusakli 38bc8ad5ae maintenance tests
barisusakli 0a245a8868 tag controller test
barisusakli db14c29e41 socket.io/categories tests
barisusakli 9796f54580 analytics tests, reduce bcrypt rouds for tests
barisusakli e3616ab0f9 socket/meta test
barisusakli 5e7fb4eeb2 widget tests
barisusakli 50a2a7abbe plugins/install tests
barisusakli 2a97e5478f fix pushGroups test
barisusakli e86db04631 run build step before tests
move build to its own file
barisusakli f1a933210b notifications.pushGroups
barisusakli f2e4d9ce53 change flag tests so they use socket methods as well
barisusakli 7a0a77d0fa revoke session tests
barisusakli 3380f61985 more tests
barisusakli ee75c69817 post edit tests
Ben Lubar e151916f1a
Fix followed topic notifications going to the last unread post
Regression introduced in 1b34ebe230.

Bug originally reported in .
barisusakli a3bff8d320 another test for user profile
barisusakli 8449f3428e user/userslug/settings test
barisusakli ecef0c6ad5 more user tests
barisusakli fda535a351 more chat tests
barisusakli d23966c534 more tests
barisusakli bbb968922d fix test
barisusakli 3ec760ac85 inf scroll tests for topics
barisusakli 2cc2e7688a more tests
Ben Lubar 2185d8eb99 Ban UI fixes ()
- Permanent bans assigned by global moderators no longer expire immediately
  (does not apply retroactively)
- Bans with no reason given no longer have "undefined" as their reason
  (applies retroactively)
- 0 is now a selectable value for "ban duration, select 0 for permanent"
barisusakli eca850c4b1 nested reply improvements
on new post increase count and add nested reply if replies are expanded
on post purge reduce count and remove nested reply
barisusakli 64a662ce50 some upload tests
barisusakli 9fe89f590e more admin controller tests
barisusakli 980e3fc7f7 topic tests, pin/lock/move
barisusakli a4dfe608e9 ban tests, user/info test
barisusakli d5ec36f45a socket.io topic.post/reply tests
barisusakli 7a8de6169b admin controller tests
barisusakli 9db50a3eda fix getReplies test
Barış Soner Uşaklı 0c08e44a34 Merge pull request from BenLubar/replies-to-post
Add a sorted set for replies-to-this-post
yariplus 179b66d74a flag tests
Ben Lubar 661bdc8311
add test for posts.getReplies
Peter Jaszkowiak 2824ce5587 Translator modules ()
* Translator modules

* Fix language not being passed on creation

* fix test failures
barisusakli 777914b762 more api tests
barisusakli 687cce6089 closes
barisusakli 2d10490ca3 more plugin tests
barisusakli fb83967a6d more route tests
barisusakli c5d2dbb90f increase timeout for password test
barisusakli c4772300f2 more utils tests
barisusakli f56251d718 test feeds
barisusakli d8a9df74d7 fix wrong error returns, more tests
barisusakli 553ee7dcdd more chat tests
Sergii Paryzhskyi e515b791da Fix eslint rules ()
* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
barisusakli c8b5c181ff fix flag on redis
check if number is returned on tests
barisusakli 0d90279463 chat controller test
barisusakli f0f3a86908 closes
write more messaging tests
barisusakli 9131f9d8f6 controller tests
Barış Soner Uşaklı c512a02c83 Merge pull request from yariplus/lexistuff
Add additional lexical dbal operations.
yariplus af2122bdb9 fix lex tests maybe
barisusakli cec3b650c3 category route test
barisusakli f683a1fe62 added categories to search test
barisusakli 4a0f67afdc search tests
new method emptydb
use emptydb instead of flushdb, flushdb  removes indices for mongo which
breaks search tests
initialize meta.config properly in tests
enable nodebb-plugin-dbsearch for tests
yariplus e8823eab33 add db lexical tests
barisusakli ba17f98c70 getPostSummaryByPids test
barisusakli 52a0430603 cleanup console.logs
barisusakli 13719fccfe testing on nodev6
barisusakli 1a63672e66 more test fixes
barisusakli 15d948894d fix typo
barisusakli 292055d322 show test db info before test
barisusakli d1fb4909ba one more try catch for node5/6
barisusakli 4a8b3dcd4c fix eslint errors
barisusakli 817cd29f00 try require from root
barisusakli 12f366f4b4 more tests
register/login/logout tests
ability to test socket.io emits for logged in users
barisusakli b8a3ca98cb added callback to webserver.listen
wait for webserver to be ready to run tests
added topic restore test
added test to load topic via controller
barisusakli ae9b5654d3 set isPrimary and isCluster
barisusakli e462fadd94 init express/webserver for tests
barisusakli 4847c9fb81 test for post.delete/restore/purge
barisusakli e9a3acdac5 db.info test
barisusakli bfcef27c47 plugin tests
barisusakli 85ca547423 update pagination test so it covers separators as well
barisusakli 1694876475 added test for pagination
barisusakli acc7e160ef write test for cleanUpTag
barisusakli dd077117a2 refactor user.updateProfile and write test
Peter Jaszkowiak f519a36560 Fix , translator now accepts keys with `/` ()
Julian Lam 3272c0b98c linting
Julian Lam 45e412ed7c Merge branch 'master' of github.com:NodeBB/NodeBB
barisusakli afaaa8ab88 add failing test case for
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
HeeL 3fa1c1f927 Fix space-infix-ops linter rule
Peter Jaszkowiak 2ce33ba2b0 Fix , translator made more safe ()
barisusakli 59fb7d7eef failing tests for
barisusakli 6c634b0689 fix tabs
barisusakli 038418bf87 batch.processArray
use batch.processArray in notifications.push and moveRecentReplies
added notification tests
added test for moveRecentReplies
clear group cache if a group is deleted
barisusakli 6f86621e30 closes
barisusakli 76e0c6eb9c up timeout, password tests were failing
HeeL 4c6a75d85c Rename tests folder to test to follow standards