mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
tabs -> spaces, add missing semicolons
This commit is contained in:
parent
d9ffa6cc69
commit
ea3204395d
@ -1,5 +1,5 @@
|
||||
var assert = require('assert');
|
||||
var fs = require('fs')
|
||||
var fs = require('fs');
|
||||
|
||||
var networking = require('../modules/networking');
|
||||
var helpers = require('../modules/helpers');
|
||||
@ -8,7 +8,7 @@ var skins = require('../modules/skins');
|
||||
|
||||
var uuids = fs.readFileSync('test/uuids.txt').toString().split("\r\n");
|
||||
// Get a random UUID in order to prevent rate limiting
|
||||
var uuid = uuids[Math.floor((Math.random() * 200) + 1)]
|
||||
var uuid = uuids[Math.floor((Math.random() * 200) + 1)];
|
||||
|
||||
// Only deletes files, doesn't delete directory.
|
||||
var deleteFolderRecursive = function(path) {
|
||||
@ -27,7 +27,7 @@ var deleteFolderRecursive = function(path) {
|
||||
describe('Avatar Serving', function(){
|
||||
before(function() {
|
||||
deleteFolderRecursive('skins/');
|
||||
})
|
||||
});
|
||||
describe('UUID', function(){
|
||||
it("should be an invalid uuid", function(done){
|
||||
assert.equal(helpers.uuid_valid("invaliduuid"), false);
|
||||
@ -55,7 +55,7 @@ describe('Avatar Serving', function(){
|
||||
describe('Mojang Errors', function(){
|
||||
before(function() {
|
||||
deleteFolderRecursive('skins/');
|
||||
})
|
||||
});
|
||||
it("should be rate limited", function(done) {
|
||||
helpers.get_avatar(uuid, false, 180, function(err, status, image) {
|
||||
assert.equal(err, null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user