mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
various networking.js improvements
- cleaned up some messy if/else code, replaced with nicely readable switch/case - catch JSON.parse errors
This commit is contained in:
@@ -1013,7 +1013,7 @@ describe("Crafatar", function() {
|
||||
it("uuid should be rate limited", function(done) {
|
||||
networking.get_profile(rid, id, function() {
|
||||
networking.get_profile(rid, id, function(err, profile) {
|
||||
assert.strictEqual(err, "TooManyRequests");
|
||||
assert.strictEqual(err, "TooManyRequestsException");
|
||||
assert.strictEqual(profile.error, "TooManyRequestsException");
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user