diff --git a/index.js b/index.js index 49bef78..379fde2 100644 --- a/index.js +++ b/index.js @@ -147,12 +147,9 @@ class Ora { return this; } - // Legacy argument - // TODO: Deprecate sometime in the future + // TODO: Remove in the next major version if (typeof options === 'string') { - options = { - symbol: options - }; + throw new TypeError('This argument now accepts an options object, not a string'); } options = options || {}; diff --git a/test.js b/test.js index 0d305d2..9b2881d 100644 --- a/test.js +++ b/test.js @@ -106,14 +106,6 @@ test('.info()', macro, spinner => { spinner.info(); }, /(ℹ|i) foo/); -test('.stopAndPersist()', macro, spinner => { - spinner.stopAndPersist('@'); -}, /@ foo/); - -test('.stopAndPersist() - with no argument', macro, spinner => { - spinner.stopAndPersist(' '); -}, /\s foo/); - test('.stopAndPersist() - with new text', macro, spinner => { spinner.stopAndPersist({text: 'all done'}); }, /\s all done/);