Skip to content

Commit 294c92d

Browse files
authored
Merge pull request #53 from mochman/color_temp_kelvin
updated test
2 parents 070efa7 + a9af53c commit 294c92d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/1-light-transition_spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ let trys = [
4545
brightness_pct: 35,
4646
color_temp: 423,
4747
rgb_color: [255, 0, 0],
48+
color_temp_kelvin: Math.round(1000000 / 423),
4849
},
4950
{
5051
brightness: 222,
5152
brightness_pct: 87,
5253
color_temp: 100,
5354
rgb_color: [255, 255, 255],
55+
color_temp_kelvin: Math.round(1000000 / 100),
5456
},
5557
],
5658
[
@@ -70,12 +72,14 @@ let trys = [
7072
brightness_pct: 100,
7173
color_temp: 200,
7274
rgb_color: [18, 52, 86],
75+
color_temp_kelvin: Math.round(1000000 / 200),
7376
},
7477
{
7578
brightness: 36,
7679
brightness_pct: 14,
7780
color_temp: 600,
7881
rgb_color: [250, 0, 36],
82+
color_temp_kelvin: Math.round(1000000 / 600),
7983
},
8084
],
8185
];
@@ -129,6 +133,7 @@ describe('light-transition Node - Function Tests', function () {
129133
brightness_pct: 1,
130134
color_temp: 200,
131135
rgb_color: [255, 0, 0],
136+
color_temp_kelvin: Math.round(1000000 / 200),
132137
};
133138

134139
helper.load(lightNode, startingFlow, function () {

0 commit comments

Comments
 (0)