We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15ae87b commit 7235b40Copy full SHA for 7235b40
1 file changed
test/shjs.js
@@ -47,13 +47,20 @@ test('CoffeeScript', t => {
47
t.falsy(result.stderr);
48
});
49
50
-test('Extension detection', t => {
+test('JS extension inference', t => {
51
const result = runWithShjs('a-file');
52
t.is(result.code, 0);
53
t.is(result.stdout, 'OK!\n');
54
55
56
57
+test('CoffeeScript extension inference', t => {
58
+ const result = runWithShjs('coffeescript');
59
+ t.is(result.code, 0);
60
+ t.is(result.stdout, 'CoffeeScript: OK!\n');
61
+ t.falsy(result.stderr);
62
+});
63
+
64
//
65
// Invalids
66
0 commit comments