mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +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 assert = require('assert');
|
||||||
var fs = require('fs')
|
var fs = require('fs');
|
||||||
|
|
||||||
var networking = require('../modules/networking');
|
var networking = require('../modules/networking');
|
||||||
var helpers = require('../modules/helpers');
|
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");
|
var uuids = fs.readFileSync('test/uuids.txt').toString().split("\r\n");
|
||||||
// Get a random UUID in order to prevent rate limiting
|
// 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.
|
// Only deletes files, doesn't delete directory.
|
||||||
var deleteFolderRecursive = function(path) {
|
var deleteFolderRecursive = function(path) {
|
||||||
@ -27,7 +27,7 @@ var deleteFolderRecursive = function(path) {
|
|||||||
describe('Avatar Serving', function(){
|
describe('Avatar Serving', function(){
|
||||||
before(function() {
|
before(function() {
|
||||||
deleteFolderRecursive('skins/');
|
deleteFolderRecursive('skins/');
|
||||||
})
|
});
|
||||||
describe('UUID', function(){
|
describe('UUID', function(){
|
||||||
it("should be an invalid uuid", function(done){
|
it("should be an invalid uuid", function(done){
|
||||||
assert.equal(helpers.uuid_valid("invaliduuid"), false);
|
assert.equal(helpers.uuid_valid("invaliduuid"), false);
|
||||||
@ -55,7 +55,7 @@ describe('Avatar Serving', function(){
|
|||||||
describe('Mojang Errors', function(){
|
describe('Mojang Errors', function(){
|
||||||
before(function() {
|
before(function() {
|
||||||
deleteFolderRecursive('skins/');
|
deleteFolderRecursive('skins/');
|
||||||
})
|
});
|
||||||
it("should be rate limited", function(done) {
|
it("should be rate limited", function(done) {
|
||||||
helpers.get_avatar(uuid, false, 180, function(err, status, image) {
|
helpers.get_avatar(uuid, false, 180, function(err, status, image) {
|
||||||
assert.equal(err, null);
|
assert.equal(err, null);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user