fix encoding and rb tree tests

This commit is contained in:
Kevin Jahns
2017-10-15 12:17:25 +02:00
parent 0e426f8928
commit 4eec8ecdd3
15 changed files with 151 additions and 175 deletions

View File

@@ -1,11 +1,3 @@
// import debug from 'debug'
export function debug (namespace) {
return function log (message) {
console.log(namespace, message)
}
}
import DeleteStore from './Store/DeleteStore.js'
import OperationStore from './Store/OperationStore.js'
import StateStore from './Store/StateStore.js'
@@ -21,6 +13,8 @@ import YMap from './Type/YMap.js'
import YText from './Type/YText.js'
import YXml from './Type/YXml.js'
import debug from 'debug'
export default class Y {
constructor (opts) {
this.userID = generateUserID()
@@ -101,6 +95,8 @@ Y.Map = YMap
Y.Text = YText
Y.Xml = YXml
export { default as debug } from 'debug'
Y.debug = debug
debug.formatters.Y = messageToString
debug.formatters.y = messageToRoomname