This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
exports.beforeConnect = function(client) { | |
// On ne veut pas que les clients utilisent de websocket | |
client.disable('websocket'); | |
}; | |
exports.onConnect = function(client, done) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// On lance le serveur node à tester | |
var server = require('../../server.js'); | |
var request = require('supertest'); | |
var request = request('http://localhost:3334'); | |
describe('Test backend API ' , function () { | |
describe('Test Write message then delete it ', function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('test class timeline', function(){ | |
beforeEach(function() { | |
timeline = new Timeline(10); | |
}); | |
describe('#addMessage method' , function() { | |
it('when i add message timeline.data must contain this message', function() { | |
var message = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="timeline" default="build" basedir="../../../"> | |
<!-- ================================================================== --> | |
<!-- Construction --> | |
<!-- ================================================================== --> | |
<target name="build" depends="clean-up, init, checkstyle, tests" /> | |
<!-- =================================================================== --> | |
<!-- Nettoyage des éléments temporaires --> |
NewerOlder