8
0

index.js 777 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* jshint node: true */
  6. 'use strict';
  7. var path = require( 'path' );
  8. var files = [
  9. path.join( __dirname, '../static/extensions.js' ),
  10. path.join( __dirname, '../static/tools.js' )
  11. ];
  12. module.exports = {
  13. name: 'bender-ckeditor5',
  14. attach: function() {
  15. var that = this;
  16. var bender = that;
  17. bender.plugins.addFiles( files );
  18. bender.plugins.addInclude( files );
  19. bender.on( 'test:created', function( test ) {
  20. var name = test.displayName;
  21. name = name.replace( /node_modules\/ckeditor5-core/, 'core: ' );
  22. name = name.replace( /node_modules\/ckeditor5-plugin-([^\/]+)/, 'plugin!$1: ' );
  23. test.displayName = name;
  24. } );
  25. }
  26. };