mirror of
https://github.com/gundb/panic-server.git
synced 2026-05-07 03:00:26 -04:00
Merge pull request #9 from finwo/remove-bluebird
Removed all bluebird references
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/gundb/panic-server#readme",
|
||||
"dependencies": {
|
||||
"bluebird": "^3.3.5",
|
||||
"panic-client": "^1.0.0",
|
||||
"socket.io": "^1.4.5"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
var Promise = require('bluebird');
|
||||
var matches = require('./matcher');
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
'use strict';
|
||||
var Emitter = require('events');
|
||||
var Promise = require('bluebird');
|
||||
|
||||
/**
|
||||
* Creates reactive lists of clients.
|
||||
@@ -176,7 +175,7 @@ API.excluding = function (exclude) {
|
||||
if(exclude instanceof Array){
|
||||
exclude = new ClientList(exclude);
|
||||
}
|
||||
|
||||
|
||||
var list = this.filter(function (client) {
|
||||
var excluded = exclude.get(client.socket.id);
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
'use strict';
|
||||
var Client = require('../src/Client');
|
||||
var Emitter = require('events');
|
||||
var Promise = require('bluebird');
|
||||
var expect = require('expect');
|
||||
|
||||
describe('A client', function () {
|
||||
@@ -99,7 +98,7 @@ describe('A client', function () {
|
||||
expect(args[2]).toBe(props);
|
||||
});
|
||||
|
||||
it('should return a bluebird promise', function () {
|
||||
it('should return a promise', function () {
|
||||
var job = client.run(function () {});
|
||||
expect(job).toBeA(Promise);
|
||||
});
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
var mock = require('./mock');
|
||||
var Client = mock.Client;
|
||||
var ClientList = require('../src/ClientList');
|
||||
var Promise = require('bluebird');
|
||||
|
||||
var expect = require('chai').expect;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user