Skip to content

Commit

Permalink
Test assertCalculation in other types
Browse files Browse the repository at this point in the history
  • Loading branch information
jerivas committed Jul 18, 2023
1 parent f3d169e commit 6b3b5b8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/dart_api/value/boolean_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ void main() {
});

test("isn't any other type", () {
expect(value.assertCalculation, throwsSassScriptException);
expect(value.assertColor, throwsSassScriptException);
expect(value.assertFunction, throwsSassScriptException);
expect(value.assertMap, throwsSassScriptException);
Expand Down
1 change: 1 addition & 0 deletions test/dart_api/value/color_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ void main() {

test("isn't any other type", () {
expect(value.assertBoolean, throwsSassScriptException);
expect(value.assertCalculation, throwsSassScriptException);
expect(value.assertFunction, throwsSassScriptException);
expect(value.assertMap, throwsSassScriptException);
expect(value.tryMap(), isNull);
Expand Down
1 change: 1 addition & 0 deletions test/dart_api/value/function_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void main() {

test("isn't any other type", () {
expect(value.assertBoolean, throwsSassScriptException);
expect(value.assertCalculation, throwsSassScriptException);
expect(value.assertColor, throwsSassScriptException);
expect(value.assertMap, throwsSassScriptException);
expect(value.tryMap(), isNull);
Expand Down
1 change: 1 addition & 0 deletions test/dart_api/value/list_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ void main() {

test("isn't any other type", () {
expect(value.assertBoolean, throwsSassScriptException);
expect(value.assertCalculation, throwsSassScriptException);
expect(value.assertColor, throwsSassScriptException);
expect(value.assertFunction, throwsSassScriptException);
expect(value.assertMap, throwsSassScriptException);
Expand Down
1 change: 1 addition & 0 deletions test/dart_api/value/map_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ void main() {

test("isn't any other type", () {
expect(value.assertBoolean, throwsSassScriptException);
expect(value.assertCalculation, throwsSassScriptException);
expect(value.assertColor, throwsSassScriptException);
expect(value.assertFunction, throwsSassScriptException);
expect(value.assertNumber, throwsSassScriptException);
Expand Down
1 change: 1 addition & 0 deletions test/dart_api/value/null_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ void main() {

test("isn't any type", () {
expect(value.assertBoolean, throwsSassScriptException);
expect(value.assertCalculation, throwsSassScriptException);
expect(value.assertColor, throwsSassScriptException);
expect(value.assertFunction, throwsSassScriptException);
expect(value.assertMap, throwsSassScriptException);
Expand Down
1 change: 1 addition & 0 deletions test/dart_api/value/number_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ void main() {

test("isn't any other type", () {
expect(value.assertBoolean, throwsSassScriptException);
expect(value.assertCalculation, throwsSassScriptException);
expect(value.assertColor, throwsSassScriptException);
expect(value.assertFunction, throwsSassScriptException);
expect(value.assertMap, throwsSassScriptException);
Expand Down
1 change: 1 addition & 0 deletions test/dart_api/value/string_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ void main() {

test("isn't any other type", () {
expect(value.assertBoolean, throwsSassScriptException);
expect(value.assertCalculation, throwsSassScriptException);
expect(value.assertColor, throwsSassScriptException);
expect(value.assertFunction, throwsSassScriptException);
expect(value.assertMap, throwsSassScriptException);
Expand Down

0 comments on commit 6b3b5b8

Please sign in to comment.