mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 10:56: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(){
|
||||
it('creates a new Pad with text', function(done) {
|
||||
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)
|
||||
.expect(function(res){
|
||||
if(res.body.code !== 0) throw new Error("Pad setting text failed");
|
||||
|
@ -553,8 +552,8 @@ describe('getHTML', function(){
|
|||
it('Gets the HTML of a Pad and include author info', function(done) {
|
||||
api.get(endPoint('getHTML')+"&padID="+testPadId+"&authorColor=true")
|
||||
.expect(function(res){
|
||||
var html = res.body.data.html;
|
||||
console.warn("html", html);
|
||||
var html = res.body.data.html;
|
||||
console.warn("WARN html", html);
|
||||
if(html !== html) throw new Error("Imported HTML does not match served HTML")
|
||||
})
|
||||
.expect('Content-Type', /json/)
|
||||
|
@ -587,6 +586,7 @@ describe('createPad', function(){
|
|||
|
||||
var endPoint = function(point, version){
|
||||
version = version || apiVersion;
|
||||
var ep = '/api/'+version+'/'+point+'?apikey='+apiKey;
|
||||
return '/api/'+version+'/'+point+'?apikey='+apiKey;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue