Skip to content

Commit dbf2000

Browse files
committed
Add workaround for build process machinations
1 parent f3fe319 commit dbf2000

File tree

1 file changed

+9
-2
lines changed
  • lib/node_modules/@stdlib/namespace/standalone2pkg/test

1 file changed

+9
-2
lines changed

lib/node_modules/@stdlib/namespace/standalone2pkg/test/test.cli.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,14 @@ tape( 'when invoked with a `-V` flag, the command-line interface prints the vers
142142
});
143143

144144
tape( 'the command-line interface prints a package name', opts, function test( t ) {
145-
var cmd = [
145+
var expected;
146+
var cmd;
147+
148+
// Note: the following is intentional, as a build process workaround during individual package publishing...
149+
expected = '@stdlib/';
150+
expected += 'math/base/special/sin';
151+
152+
cmd = [
146153
EXEC_PATH,
147154
fpath,
148155
'@stdlib/math-base-special-sin'
@@ -154,7 +161,7 @@ tape( 'the command-line interface prints a package name', opts, function test( t
154161
if ( error ) {
155162
t.fail( error.message );
156163
} else {
157-
t.strictEqual( stdout.toString(), '@stdlib/math/base/special/sin\n', 'prints expected value' );
164+
t.strictEqual( stdout.toString(), expected+'\n', 'prints expected value' );
158165
t.strictEqual( stderr.toString(), '', 'does not print to `stderr`' );
159166
}
160167
t.end();

0 commit comments

Comments
 (0)