Skip to content

Commit

Permalink
Customized the test display name in the dashboard list.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredck committed May 13, 2015
1 parent 9f9d9d8 commit 345559b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions dev/bender/plugins/ckeditor5/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ var files = [
module.exports = {
name: 'bender-ckeditor5',

files: files,
include: files
attach: function() {
var that = this;
var bender = that;

bender.plugins.addFiles( files );
bender.plugins.addInclude( files );

bender.on( 'test:created', function( test ) {
var name = test.displayName;

name = name.replace( /node_modules\/ckeditor5-core/, 'core: ' );
name = name.replace( /node_modules\/ckeditor5-plugin-([^\/]+)/, 'plugin!$1: ' );

test.displayName = name;
} );
}
};

0 comments on commit 345559b

Please sign in to comment.