Skip to content

Commit

Permalink
Update node-requires test case to match end goal
Browse files Browse the repository at this point in the history
Summary:
Small change to the node-requires test case, to keep
it from erroring every time a new functionality is
implemented. Also included the ultimate end goal
functionality and a test file to read.

Reviewed By: avp

Differential Revision: D29244002

fbshipit-source-id: 6d39637ec00757e1d63617ad01c5aa65390a532e
  • Loading branch information
adithiraofb authored and facebook-github-bot committed Jun 28, 2021
1 parent c5a9f7d commit f3e7e7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/node-hermes/node-requires.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ print('Node Requires');
// CHECK-LABEL: Node Requires

try {
var test1 = require('fs');
var fs = require('fs');
var fileContents = fs.readFileSync('testRead.txt', 'utf8');
} catch (e) {
print('caught:', e.name, e.message);
}
Expand Down
1 change: 1 addition & 0 deletions test/node-hermes/testRead.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello world!

0 comments on commit f3e7e7e

Please sign in to comment.