diff --git a/common/predictive-text/unit_tests/headless/lmlayer.js b/common/predictive-text/unit_tests/headless/lmlayer.js index 9b971b34d7..da89786df1 100644 --- a/common/predictive-text/unit_tests/headless/lmlayer.js +++ b/common/predictive-text/unit_tests/headless/lmlayer.js @@ -5,8 +5,22 @@ let LMLayer = require('../../'); describe('LMLayer', function() { describe('[[constructor]]', function () { - it.skip('should be take a URI to instantiate', function () { + it('should be take a URI to instantiate', function () { new LMLayer(uri); }); }); + + /** + * .unwrap() is a static function that unwraps some function code. + */ + describe('.unwrap', function () { + it('should return the inner code of a function', function () { + let text = LMLayer.unwrap(function hello() { + var hello; + var world; + }); + + assert.match(text, /^\s*var\s+hello;\s*var\s+world;\s*$/); + }); + }); });