From 9c6b5d6c870e7cb3609b74c5aa12d5eded4c2239 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Thu, 5 Oct 2023 03:18:04 +0000 Subject: [PATCH] Auto-generated commit --- README.md | 4 ++-- package.json | 6 +++--- test/dist/test.js | 27 ++++----------------------- 3 files changed, 9 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 18dcf1c..f7dd3ee 100644 --- a/README.md +++ b/README.md @@ -211,8 +211,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors]. [npm-image]: http://img.shields.io/npm/v/@stdlib/process-node-version.svg [npm-url]: https://npmjs.org/package/@stdlib/process-node-version -[test-image]: https://github.com/stdlib-js/process-node-version/actions/workflows/test.yml/badge.svg?branch=v0.1.1 -[test-url]: https://github.com/stdlib-js/process-node-version/actions/workflows/test.yml?query=branch:v0.1.1 +[test-image]: https://github.com/stdlib-js/process-node-version/actions/workflows/test.yml/badge.svg?branch=main +[test-url]: https://github.com/stdlib-js/process-node-version/actions/workflows/test.yml?query=branch:main [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/process-node-version/main.svg [coverage-url]: https://codecov.io/github/stdlib-js/process-node-version?branch=main diff --git a/package.json b/package.json index 63284a7..b03202f 100644 --- a/package.json +++ b/package.json @@ -47,9 +47,9 @@ "@stdlib/fs-read-file": "^0.1.1" }, "devDependencies": { - "@stdlib/assert-is-browser": "^0.1.0", - "@stdlib/assert-is-windows": "^0.1.0", - "@stdlib/process-exec-path": "^0.1.0", + "@stdlib/assert-is-browser": "^0.1.1", + "@stdlib/assert-is-windows": "^0.1.1", + "@stdlib/process-exec-path": "^0.1.1", "proxyquire": "^2.0.0", "semver": "^6.0.0", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", diff --git a/test/dist/test.js b/test/dist/test.js index aa7c3ae..a8a9c60 100644 --- a/test/dist/test.js +++ b/test/dist/test.js @@ -1,7 +1,7 @@ /** * @license Apache-2.0 * -* Copyright (c) 2018 The Stdlib Authors. +* Copyright (c) 2023 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,32 +21,13 @@ // MODULES // var tape = require( 'tape' ); -var proxyquire = require( 'proxyquire' ); -var IS_NODE = require( '@stdlib/assert-is-node' ); -var VERSION = require( './../../dist' ); +var main = require( './../../dist' ); // TESTS // -tape( 'main export is either a string or `null`', function test( t ) { +tape( 'main export is defined', function test( t ) { t.ok( true, __filename ); - t.strictEqual( typeof VERSION === 'string' || VERSION === null, true, 'main export is either a string or `null`' ); - t.end(); -}); - -tape( 'if running in a Node.js process, the main export is a string; otherwise, the export is equal to `null`.', function test( t ) { - if ( IS_NODE ) { - t.equal( typeof VERSION, 'string', 'exports a string' ); - } else { - t.equal( VERSION, null, 'exports null' ); - } - t.end(); -}); - -tape( 'if not running in a Node.js process, the main export is `null`', function test( t ) { - var VERSION = proxyquire( './../dist', { - '@stdlib/assert-is-node': false - }); - t.equal( VERSION, null, 'exports null' ); + t.strictEqual( main !== void 0, true, 'main export is defined' ); t.end(); });