mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
first version after migration to mocha
This commit is contained in:
parent
876d7db39a
commit
5becf0bd15
13 changed files with 1222 additions and 1613 deletions
24
tests/backend/specs/easysync/moveOpsToNewPool.js
Normal file
24
tests/backend/specs/easysync/moveOpsToNewPool.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
var AttributePool = require("ep_etherpad-lite/static/js/AttributePool");
|
||||
var Changeset = require("ep_etherpad-lite/static/js/Changeset");
|
||||
var helper = require("./helper.js")
|
||||
var assertEqualStrings = helper.assertEqualStrings;
|
||||
|
||||
|
||||
describe("moveOpsToNewPool",function(){
|
||||
it("moveOpsToNewPool",function(done){
|
||||
|
||||
|
||||
var pool1 = new AttributePool();
|
||||
var pool2 = new AttributePool();
|
||||
|
||||
pool1.putAttrib(['baz', 'qux']);
|
||||
pool1.putAttrib(['foo', 'bar']);
|
||||
|
||||
pool2.putAttrib(['foo', 'bar']);
|
||||
|
||||
assertEqualStrings(Changeset.moveOpsToNewPool('Z:1>2*1+1*0+1$ab', pool1, pool2), 'Z:1>2*0+1*1+1$ab');
|
||||
assertEqualStrings(Changeset.moveOpsToNewPool('*1+1*0+1', pool1, pool2), '*0+1*1+1');
|
||||
done();
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue