Commit Graph

710 Commits (9cdd5316179325873735318cfcfc71f29a98e491)

Author SHA1 Message Date
Baris Usakli 0ea4ee7dda Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Baris Usakli 4903585d88 refactor userPrivileges and groupPrivileges
Baris Usakli 037a0e5239 closes
also fix reverse infinite scroll when sorting is changed
Barış Soner Uşaklı e56178f72e remove init socket.io
Barış Soner Uşaklı 4f31dec82c reduce usage of io.emit in tests
Barış Soner Uşaklı 5a55c882ab convert NaN uids to 0
Barış Soner Uşaklı 92376a1589 fix calls
Barış Soner Uşaklı eb0faf1e4a change test to use new signature
Barış Soner Uşaklı 932247f440 up deps
Barış Soner Uşaklı 3049f5cf1f test
Barış Soner Uşaklı 08aaabd33c closes
Barış Soner Uşaklı f1b8492164 remove unnecessary checks
Barış Soner Uşaklı 3d1b1a9423 closes
Barış Soner Uşaklı 9ec65db539 closes
Barış Soner Uşaklı 271c10c9d7 dont create indices after every test
Peter Jaszkowiak b171f3072b Fix many "duplicate key" errors
- Reset defaults after every test
- Remove individual `after(db.emptydb)` calls
- Fix async.every in groups test
- Update plugin list in socket tests
Baris Usakli 61eb7aa68b more tests
Baris Usakli 11d9410229 fix test and image normalize test
Baris Usakli 9efa46c65a more account tests
Peter Jaszkowiak 5f36156e0d Fix tests on Windows with CRLF
Peter Jaszkowiak 8901dad6f2 Revert "fix concat test on windows"
This reverts commit d1dd0cd6df.
Baris Usakli 69b5bb39ec unread tests
Baris Usakli d1dd0cd6df fix concat test on windows
Barış Soner Uşaklı 466e6d7c53 make renameGroup public for
Barış Soner Uşaklı f6ac92111b style changes
Barış Soner Uşaklı 79a48cec5f controllers/category tests
Baris Usakli 062bced3dd cleanup and tests
Peter Jaszkowiak 9ef2b5a003 Don't use uglify compress
Peter Jaszkowiak 53eced6be0 uglify-js@3, JS source maps 🍰
Julian Lam fc4f016932 Merge pull request from NodeBB/plugin-load-ref
Plugin load refactor
Peter Jaszkowiak c85bf9202d Fix tests sometimes failing
Barış Soner Uşaklı d301139644 logger test
Barış Soner Uşaklı b0dd1ad4d7 admin navigation test
Barış Soner Uşaklı 5cb53406fe more picture tests
Peter Jaszkowiak 3dd282b7b9 Load languages with other plugin data
- Added more tests
- Should speed up builds
- Allows for incremental builds in the future
Barış Soner Uşaklı 29135dfed3 timeago locale test
Barış Soner Uşaklı 8205d6c897 test login after lock
Barış Soner Uşaklı 2bddd57a2e test account lock
Barış Soner Uşaklı b29745aa44 more auth tests
Barış Soner Uşaklı b8cc67dfff social tests
Peter Jaszkowiak cd1f0ddc79 Resolve merge conflicts
Barış Soner Uşaklı b2cef4846c Merge pull request from NodeBB/build-tests
Tests for `./nodebb build`
Barış Soner Uşaklı e4714a0c58 more auth tests
Barış Soner Uşaklı 1e83d33283 tests for login
Peter Jaszkowiak 62546bc4fd Build tests
Peter Jaszkowiak d988e8a50f Test minifier
Barış Soner Uşaklı 64c7907e6c added recent.rss
Barış Soner Uşaklı a4ba88dc60 more feed tests
Barış Soner Uşaklı c5c755fbb0 more notification tests
Barış Soner Uşaklı 9af252b899 notifications tests
Barış Soner Uşaklı c364cebbe4 more tests
Barış Soner Uşaklı 7fb45cc148 more tests
Barış Soner Uşaklı 769d2b00b1 change test method call
Barış Soner Uşaklı 9fdd313e30 tweak test
Barış Soner Uşaklı 4b94446cd9 more user search tests
Barış Soner Uşaklı fe0a5aaf28 fix redis tests
Barış Soner Uşaklı fd0043f36a more tests
Barış Soner Uşaklı 77894915eb closes
Barış Soner Uşaklı 8f8e7202e5 fix lint
Barış Soner Uşaklı fd47e23057 test login for non-existant user
Barış Soner Uşaklı 95196ceedc closes
Barış Soner Uşaklı 4ab514a422 test for .delete with zset
Peter Jaszkowiak 90da6d889d Only load necessary plugin data
Fix tests to work in this case
Add more verbose messages to plugins/data
Barış Soner Uşaklı e49f33317d digest cleanup and tests
Julian Lam d3d58b77d9 added test for custom date range ACP,
Barış Soner Uşaklı ed9a429ca9 test invalid expiry
Barış Soner Uşaklı a28b76861d perma and temp ban test
Barış Soner Uşaklı 33023ea419 create a notif before pruning
Barış Soner Uşaklı 6fdad4b002 fix test on redis
Barış Soner Uşaklı 8920523e06 more tests
Barış Soner Uşaklı 5e3946a6be teaser tests
Barış Soner Uşaklı 376c71adda group search tests
Barış Soner Uşaklı 6049c46f15 meta dependecy tests
Barış Soner Uşaklı 01e2263c01 more tests
Julian Lam 4c00a5ece6 fixing tests
Baris Usakli 0f05ae4ac1 filterpidsbycid tests
Baris Usakli 51a85031f7 utils tests
Julian Lam c64f0065bc Merge pull request from banyudu/patch-1
fix indent
Julian Lam 5ea8145cff Merge pull request from NodeBB/sounds-fix
Fix soundpacks not working, auto install dependencies, defer logging in tests
Barış Soner Uşaklı 052afb10f7 show output if upload fails
Barış Soner Uşaklı e252c5195d coverPhoto tests
Barış Soner Uşaklı 608a7d120c error handler tests
Barış Soner Uşaklı 73f31640d7 more tests
Barış Soner Uşaklı 873801e9f3 fix test on nodev4 remove console.logs
Barış Soner Uşaklı 66dee3452f more tests for admin uploads
Peter Jaszkowiak 970c7a8caa Defer winston logging until after tests
Barış Soner Uşaklı 17b57be835 Merge pull request from NodeBB/utils-rtrim
Deprecate non-standard `String.prototype.rtrim`
Peter Jaszkowiak 2b2544a4b1 Deprecate non-standard `String.prototype.rtrim`
Barış Soner Uşaklı ca17975422 osd route test
Barış Soner Uşaklı bf78786a68 flag controller tests
Barış Soner Uşaklı 36a2ac0ebd add test for user settings cache issue
Barış Soner Uşaklı 6fcd12eafe fix tests
Barış Soner Uşaklı 7ac031775a locale test change
Barış Soner Uşaklı 3a1eba2537 merge
Yudu Ban a76a8b57cd fix indent
Use space instead of Tab
Barış Soner Uşaklı 7a6b685aa0 if the main and last post is purged, purge the topic as well
Peter Jaszkowiak 6432c02ab8 Add tests
barisusakli d8170d5d1c fix tests
barisusakli 38e16ca8f6 Merge branch 'master' into develop
barisusakli 65a65b19c0 tests for
barisusakli 4d1b8d7460 fix lint
barisusakli 92343eb2e1 fix mongo setObject if key/value is empty string
barisusakli da7bc5bb7a test fix
barisusakli b8c606cbbd closes
Julian Lam a141835cf8 Merge branch 'master' into develop
barisusakli 7ce6c1d0ad closes
Peter Jaszkowiak 1fb48ef7a7 Fix ()
* Fix 
Escape translation tokens in topic titles, descriptions, profile about, and post contents

* Fix tests
Peter Jaszkowiak 484a800327 Merge branch master into develop
Peter Jaszkowiak 980e9026f3 Fix , translator ignores unclosed tokens
Julian Lam 0e157d93ea Merge remote-tracking branch 'origin/master' into develop
Julian Lam a1f87a5d7f added tests for
Julian Lam b649eb95f8 Merge remote-tracking branch 'origin/master' into develop
Peter Jaszkowiak a7677063de Rename to `uniqueUsername`
Peter Jaszkowiak 642306e69c Fix
Barış Soner Uşaklı a3d65d10f6 fix test again
Barış Soner Uşaklı 46da2daab9 fix test
Barış Soner Uşaklı 61eafb32f3 fix moderation note test
Julian Lam 7f8f197e60 Merge branch 'master' into develop
Julian Lam 2ef71e22aa Merge pull request from NodeBB/patch_5491
Fix tests for  fix
Peter Jaszkowiak 8f8babf90b Fix tests
Julian Lam 1ebbbdd3f9 Merge remote-tracking branch 'origin/master' into develop
barisusakli ff4c7ab3bb fix tests
barisusakli 5a2ff8ed0a closes
barisusakli 27b030a71c test for
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