Skip to content

Commit

Permalink
filter: merge ustom-filters.js into index.test.js
Browse files Browse the repository at this point in the history
There's really no need for this file.
  • Loading branch information
matheusmoreira committed Aug 27, 2023
1 parent 05cbaf1 commit 9c87d51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 0 additions & 9 deletions packages/pug-filters/test/custom-filters.js

This file was deleted.

9 changes: 8 additions & 1 deletion packages/pug-filters/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
var fs = require('fs');
var assert = require('assert');
var handleFilters = require('../').handleFilters;
var customFilters = require('./custom-filters.js');

var customFilters = {
custom: function(str, options) {
expect(options.opt).toBe('val');
expect(options.num).toBe(2);
return 'BEGIN' + str + 'END';
}
};

process.chdir(__dirname + '/../');

Expand Down

0 comments on commit 9c87d51

Please sign in to comment.