Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Sep 27, 2023
1 parent aea543e commit d2a6766
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
[npm-image]: http://img.shields.io/npm/v/@stdlib/utils-noop.svg
[npm-url]: https://npmjs.org/package/@stdlib/utils-noop

[test-image]: https://github.com/stdlib-js/utils-noop/actions/workflows/test.yml/badge.svg?branch=v0.1.0
[test-url]: https://github.com/stdlib-js/utils-noop/actions/workflows/test.yml?query=branch:v0.1.0
[test-image]: https://github.com/stdlib-js/utils-noop/actions/workflows/test.yml/badge.svg?branch=main
[test-url]: https://github.com/stdlib-js/utils-noop/actions/workflows/test.yml?query=branch:main

[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-noop/main.svg
[coverage-url]: https://codecov.io/github/stdlib-js/utils-noop?branch=main
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
},
"dependencies": {},
"devDependencies": {
"@stdlib/assert-is-undefined": "^0.0.8",
"@stdlib/bench": "^0.0.12",
"@stdlib/assert-is-undefined": "^0.1.0",
"@stdlib/bench": "^0.1.0",
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
"istanbul": "^0.4.1",
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
Expand Down
49 changes: 49 additions & 0 deletions test/dist/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use strict';

// MODULES //

var tape = require( 'tape' );
var noop = require( './../../dist' );


// TESTS //

tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof noop, 'function', 'main export is a function' );
t.end();
});

tape( 'the function does not take any arguments', function test( t ) {
t.equal( noop.length, 0, 'number of parameters is equal to zero' );
t.end();
});

tape( 'the function returns `undefined`', function test( t ) {
t.equal( noop(), void 0, 'returns undefined' );
t.end();
});

tape( 'the function should be empty', function test( t ) {
// NOTE: this will fail if code is instrumented for test coverage.
// t.equal( noop.toString(), 'function noop(){}', 'is empty' );
t.end();
});

0 comments on commit d2a6766

Please sign in to comment.