only-changed-jest-watch-plugin
Version:
Jest watch plugin for running either only the modified test (for TDD), or tests of dependant modules
17 lines (13 loc) • 324 B
JavaScript
/*!
* right-align <https://github.com/jonschlinkert/right-align>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
;
var align = require('align-text');
module.exports = function rightAlign(val) {
return align(val, function (len, longest) {
return longest - len;
});
};