(api, config)
| 38 | it('should append a module for handling a code format (new API)',function() { |
| 39 | |
| 40 | var formatter = function (api, config) { |
| 41 | api.should.equal(ss.api); |
| 42 | return { |
| 43 | name: 'f1', |
| 44 | extensions: ['a', 'b'], |
| 45 | assetType: 'js', |
| 46 | contentType: 'text/javascript; charset=utf-8', |
| 47 | config: config, |
| 48 | root: api.root, |
| 49 | compile: function (pathEntry, options, cb) { |
| 50 | cb('//'); |
| 51 | } |
| 52 | }; |
| 53 | }; |
| 54 | |
| 55 | ss.client.formatters.add(formatter, {c:'c'}); |
| 56 |