Commit Graph

54 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
f3a679e268 remove parseInts 2018-10-25 17:02:59 -04:00
Barış Soner Uşaklı
ac39112271 remove more parseInts 2018-10-21 19:33:46 -04:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
805da98a36 remove unnecessary groups.resetCache calls 2018-09-30 13:42:33 -04:00
Julian Lam
8e832abf1e additional tests for post diffs privilege checking 2018-06-08 11:52:40 -04:00
Barış Soner Uşaklı
4504bbae52 2 diff test 2018-05-26 13:50:31 -04:00
Julian Lam
1f1e055509 updated post association code to only associate files that exist, closes #6455 2018-04-17 13:31:54 -04:00
Julian Lam
0f13ae3c87 added isOrphan method, #6455 2018-04-16 16:44:17 -04:00
Julian Lam
2e125293e6 save reverse association of md5 of upload to pid, #6455 2018-04-16 16:22:20 -04:00
Julian Lam
850f59a1ae additional functionality, integration, and testing for #6455 2018-04-16 15:21:48 -04:00
Julian Lam
5943389b7a tests for #6455 2018-04-16 12:46:25 -04:00
Baris Usakli
ecf6c0f3ec closes #4652 2018-01-09 14:33:23 -05:00
Barış Soner Uşaklı
5b2a674a4f closes #6020 2017-10-31 16:04:25 -04:00
Barış Soner Uşaklı
25cd21fba8 closes #6019 2017-10-31 10:53:28 -04:00
Barış Soner Uşaklı
6b1af76f08 closes #6015 2017-10-31 09:43:11 -04:00
Barış Soner Uşaklı
bc6edba6df change post queue test 2017-08-27 19:13:23 -04:00
Barış Soner Uşaklı
f161bbf956 Post queue (#5878)
* #5876

* add user to post queue table

* add time of post into queue

add posting restrictions to queue

* fix shouldQueueLogic for guests

* add test for post-queue route
2017-08-15 12:59:40 -04:00
Barış Soner Uşaklı
3049f5cf1f #5522 test 2017-05-28 01:26:56 -04:00
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
2017-05-26 17:16:59 -06:00
Baris Usakli
0f05ae4ac1 filterpidsbycid tests 2017-05-11 17:16:26 -04:00
Barış Soner Uşaklı
3a1eba2537 merge 2017-05-08 13:49:35 -04:00
Barış Soner Uşaklı
7a6b685aa0 if the main and last post is purged, purge the topic as well 2017-04-26 14:19:48 -04:00
Julian Lam
860999fa6c Merge remote-tracking branch 'origin/master' into develop 2017-03-10 15:44:29 -05:00
barisusakli
3d719eec99 enable sigs after test 2017-03-09 20:18:30 +03:00
barisusakli
8d493bf3b0 post parse test 2017-03-09 19:52:48 +03:00
Julian Lam
af2d9fb85b Merge branch 'master' into develop 2017-03-06 09:51:11 -05:00
barisusakli
ab9f4ad636 test bookmark tru socket.io 2017-03-03 21:49:14 +03:00
Julian Lam
15542f1382 removing old tests that got added back in due to git being silly 2017-02-24 13:30:07 -05:00
Peter Jaszkowiak
dd2b930824 Resolve merge conflicts, minify only .js files 2017-02-23 18:31:49 -07:00
barisusakli
09d0ce4778 post tests 2017-02-23 17:02:54 +03:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
604358ecc4 ESlint keyword-spacing, no-multi-spaces 2017-02-18 01:52:56 -07:00
Peter Jaszkowiak
3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
2017-02-18 01:12:18 -07:00
Peter Jaszkowiak
b09b3aef7f ESlint no-undef, remove global comments 2017-02-17 22:03:55 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
barisusakli
f4a6527ce6 getRecentPosterUids test 2017-02-10 15:26:24 +03:00
barisusakli
a1af59def3 add missing return, fix tests 2016-12-21 00:31:20 +03:00
barisusakli
988c485874 post tools test 2016-12-20 16:03:01 +03:00
barisusakli
8691256a67 fix post move test 2016-12-05 16:30:30 +03:00
barisusakli
aad9a39f02 move post test 2016-12-02 18:22:30 +03:00
barisusakli
d2fa0c3e6a vote socket tests 2016-11-23 14:29:55 +03:00
barisusakli
cecb4c0403 some more group tests 2016-11-22 17:21:30 +03:00
barisusakli
4d86262812 use global mod user for flag tests 2016-11-22 15:55:30 +03:00
barisusakli
0794e395d5 fix test 2016-11-22 14:57:15 +03:00
barisusakli
f2e4d9ce53 change flag tests so they use socket methods as well 2016-11-16 16:24:21 +03:00
barisusakli
ee75c69817 post edit tests 2016-11-11 17:28:36 +03:00
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
2016-11-02 15:58:19 +03:00
yariplus
179b66d74a flag tests 2016-10-29 00:44:45 -04:00
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
2016-10-17 23:34:14 +03:00