Skip to content

Commit 1534b2a

Browse files
akosthekisshaesik
authored andcommitted
Add a "Hello IoT.js!" program to the tests (#1902)
The current code base does not contain any "first JavaScript program" for those who build IoT.js. The existing tests are just that: tests, giving passed/failed information but nothing eye candy. This patch adds a simple JS script that can act as a warm welcome to anyone after the first successful build trying to run something proving that IoT.js works. IoT.js-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
1 parent 7c42b75 commit 1534b2a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/hello.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Copyright 2019-present Samsung Electronics Co., Ltd. and other contributors
2+
*
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
16+
console.log("Hello IoT.js!");

0 commit comments

Comments
 (0)