Skip to content

Commit

Permalink
reorganize
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Sep 22, 2014
1 parent 7d92f5b commit d8ed8c5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,12 @@ module.exports = function (grunt) {
opts: { stdio: 'inherit' }
}, this.async());
});

grunt.registerTask('test:fuzzer', function () {
grunt.util.spawn({
cmd: './node_modules/.bin/mocha',
args: ['test/fuzzer.js'],
opts: { stdio: 'inherit' }
}, this.async());
});
};
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./lib/delta');
module.exports = require('./lib/type');
3 changes: 2 additions & 1 deletion lib/rich-text.js → lib/type.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var Delta = require('quill-delta');
var Delta = require('./delta');


module.exports = {
Delta: Delta,
name: 'rich-text',
uri: 'http://sharejs.org/types/rich-text/v0',

Expand Down
5 changes: 2 additions & 3 deletions test/fuzzer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var Delta = require('quill-delta');
Delta.op = require('quill-delta/lib/op');
var fuzzer = require('ot-fuzzer');
var richType = require('../lib/rich-text');
var richType = require('../lib/type');
var Delta = richType.Delta;

var FORMATS = {
color: ['red', 'orange', 'yellow', 'green', 'blue', 'purple', null],
Expand Down

0 comments on commit d8ed8c5

Please sign in to comment.