stringify
Version:
Browserify middleware to be able to require() text files (including templates) inside of your client-side JavaScript files.
16 lines (13 loc) • 438 B
JavaScript
/* jshint expr: true */
/* global describe: false, it: false, before: false */
;
require('should');
var Stringify = require('../index');
describe('the "registerWithRequire" function', function () {
before(function () {
Stringify.registerWithRequire();
});
it('should allow me to require "./file_fixture.txt" as strings', function () {
require('./file_fixture.txt').should.be.a.String;
});
});