mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
clean up
This commit is contained in:
parent
f55bb2b6b3
commit
ec093c9c85
1 changed files with 3 additions and 3 deletions
|
@ -202,7 +202,6 @@ describe('getText', function(){
|
||||||
describe('setText', function(){
|
describe('setText', function(){
|
||||||
it('creates a new Pad with text', function(done) {
|
it('creates a new Pad with text', function(done) {
|
||||||
var textString = "testText\tTwo"; // note the \t to emualte a tab
|
var textString = "testText\tTwo"; // note the \t to emualte a tab
|
||||||
console.warn("Set text as ", textString);
|
|
||||||
api.get(endPoint('setText')+"&padID="+testPadId+"&text="+textString)
|
api.get(endPoint('setText')+"&padID="+testPadId+"&text="+textString)
|
||||||
.expect(function(res){
|
.expect(function(res){
|
||||||
if(res.body.code !== 0) throw new Error("Pad setting text failed");
|
if(res.body.code !== 0) throw new Error("Pad setting text failed");
|
||||||
|
@ -554,7 +553,7 @@ describe('getHTML', function(){
|
||||||
api.get(endPoint('getHTML')+"&padID="+testPadId+"&authorColor=true")
|
api.get(endPoint('getHTML')+"&padID="+testPadId+"&authorColor=true")
|
||||||
.expect(function(res){
|
.expect(function(res){
|
||||||
var html = res.body.data.html;
|
var html = res.body.data.html;
|
||||||
console.warn("html", html);
|
console.warn("WARN html", html);
|
||||||
if(html !== html) throw new Error("Imported HTML does not match served HTML")
|
if(html !== html) throw new Error("Imported HTML does not match served HTML")
|
||||||
})
|
})
|
||||||
.expect('Content-Type', /json/)
|
.expect('Content-Type', /json/)
|
||||||
|
@ -587,6 +586,7 @@ describe('createPad', function(){
|
||||||
|
|
||||||
var endPoint = function(point, version){
|
var endPoint = function(point, version){
|
||||||
version = version || apiVersion;
|
version = version || apiVersion;
|
||||||
|
var ep = '/api/'+version+'/'+point+'?apikey='+apiKey;
|
||||||
return '/api/'+version+'/'+point+'?apikey='+apiKey;
|
return '/api/'+version+'/'+point+'?apikey='+apiKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue