Commit graph

2 commits

Author SHA1 Message Date
Timo Tijhof
6b3b05558f API: Fix 'user_id' field of ApiCSPReport
Was accidentally turned into an always-true boolean in 5f343617,
due to confusion with JavaScript's default '||' operator.

Change-Id: I24071e22f8bb7a296ae138303f63acdb8ea4950a
2019-07-19 22:58:39 +01:00
Timo Tijhof
4b01004a1f API: Add test case for ApiCSPReportTest
Covers the basic functioning of the class, as well as the specific
behaviours introduced or changed by 5f34361759 and 0ca1b8a0e6.

Also includes a (bad) expectation for 'user_id' (bool instead of string),
which is a bug caused by 5f34361759 that the next commit will fix.

Change-Id: I2c57c813b8a31e51a61778951227ccbd1217a547
2019-07-19 22:58:39 +01:00