fix some tests
This commit is contained in:
		
							parent
							
								
									250050e83b
								
							
						
					
					
						commit
						f35c056bde
					
				| @ -3,7 +3,7 @@ import commonjs from 'rollup-plugin-commonjs' | |||||||
| import multiEntry from 'rollup-plugin-multi-entry' | import multiEntry from 'rollup-plugin-multi-entry' | ||||||
| 
 | 
 | ||||||
| export default { | export default { | ||||||
|   input: 'test/y-text.tests.js', |   input: 'test/index.js', | ||||||
|   name: 'y-tests', |   name: 'y-tests', | ||||||
|   sourcemap: true, |   sourcemap: true, | ||||||
|   output: { |   output: { | ||||||
|  | |||||||
| @ -225,6 +225,7 @@ export default class YArray extends Type { | |||||||
|     }) |     }) | ||||||
|   } |   } | ||||||
|   insert (pos, content) { |   insert (pos, content) { | ||||||
|  |     this._transact(() => { | ||||||
|       let left = null |       let left = null | ||||||
|       let right = this._start |       let right = this._start | ||||||
|       let count = 0 |       let count = 0 | ||||||
| @ -248,6 +249,7 @@ export default class YArray extends Type { | |||||||
|         throw new Error('Position exceeds array range!') |         throw new Error('Position exceeds array range!') | ||||||
|       } |       } | ||||||
|       this.insertAfter(left, content) |       this.insertAfter(left, content) | ||||||
|  |     }) | ||||||
|   } |   } | ||||||
|   push (content) { |   push (content) { | ||||||
|     let n = this._start |     let n = this._start | ||||||
|  | |||||||
| @ -1,5 +1,6 @@ | |||||||
| import './red-black-tree.js' | import './red-black-tree.js' | ||||||
| import './y-array.tests.js' | import './y-array.tests.js' | ||||||
|  | import './y-text.tests.js' | ||||||
| import './y-map.tests.js' | import './y-map.tests.js' | ||||||
| import './y-xml.tests.js' | import './y-xml.tests.js' | ||||||
| import './encode-decode.tests.js' | import './encode-decode.tests.js' | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user