Skip to content

Commit 745cd13

Browse files
Fix DaxFormatterSpacingStyle typo (#10)
1 parent 3a22a86 commit 745cd13

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/Dax.Formatter.Tests/DaxFormatterClientTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public DaxFormatterClientTests(DaxFormatterClientFixture formatter)
2424

2525
[Theory]
2626
[InlineData(DaxFormatterSpacingStyle.SpaceAfterFunction, "[X]=IF(1=1,TRUE(),FALSE())", "[X] =\r\nIF ( 1 = 1, TRUE (), FALSE () )\r\n")]
27-
[InlineData(DaxFormatterSpacingStyle.NoNpaceAfterFunction, "[X]=IF(1=1,TRUE(),FALSE())", "[X] =\r\nIF( 1 = 1, TRUE(), FALSE() )\r\n")]
27+
[InlineData(DaxFormatterSpacingStyle.NoSpaceAfterFunction, "[X]=IF(1=1,TRUE(),FALSE())", "[X] =\r\nIF( 1 = 1, TRUE(), FALSE() )\r\n")]
2828
public async Task DaxFormatterClient_FormatAsync_SpacingStyleIsHonored(DaxFormatterSpacingStyle spacingStyle, string expression, string expectedExpression)
2929
{
3030
var request = new DaxFormatterSingleRequest

src/Dax.Formatter.Tests/Models/DaxFormatterMultipleRequestTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void DaxFormatterMultipleRequest_MaxLineLengthSerialization(DaxFormatterL
7777
}
7878

7979
[Theory]
80-
[InlineData(DaxFormatterSpacingStyle.NoNpaceAfterFunction, true)]
80+
[InlineData(DaxFormatterSpacingStyle.NoSpaceAfterFunction, true)]
8181
[InlineData(DaxFormatterSpacingStyle.SpaceAfterFunction, false)]
8282
public void DaxFormatterMultipleRequest_SkipSpaceAfterFunctionNameSerialization(DaxFormatterSpacingStyle spacingStyle, bool expectedSpacingStyle)
8383
{

src/Dax.Formatter.Tests/Models/DaxFormatterSingleRequestTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void DaxFormatterSingleRequest_MaxLineLengthSerialization(DaxFormatterLin
7070

7171

7272
[Theory]
73-
[InlineData(DaxFormatterSpacingStyle.NoNpaceAfterFunction, true)]
73+
[InlineData(DaxFormatterSpacingStyle.NoSpaceAfterFunction, true)]
7474
[InlineData(DaxFormatterSpacingStyle.SpaceAfterFunction, false)]
7575
public void DaxFormatterSingleRequest_SkipSpaceAfterFunctionNameSerialization(DaxFormatterSpacingStyle spacingStyle, bool expectedSpacingStyle)
7676
{

src/Dax.Formatter/Models/DaxFormatterSpacingStyle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ public enum DaxFormatterSpacingStyle
66

77
SpaceAfterFunction = 0,
88

9-
NoNpaceAfterFunction = 1
9+
NoSpaceAfterFunction = 1
1010
}
1111
}

src/Dax.Formatter/Serialization/JsonDaxFormatterSpacingStyleConverter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public override DaxFormatterSpacingStyle Read(ref Utf8JsonReader reader, Type ty
1212
switch (reader.TokenType)
1313
{
1414
case JsonTokenType.True:
15-
return DaxFormatterSpacingStyle.NoNpaceAfterFunction;
15+
return DaxFormatterSpacingStyle.NoSpaceAfterFunction;
1616
case JsonTokenType.False:
1717
return DaxFormatterSpacingStyle.SpaceAfterFunction;
1818
}
@@ -27,12 +27,12 @@ public override void Write(Utf8JsonWriter writer, DaxFormatterSpacingStyle value
2727
case DaxFormatterSpacingStyle.SpaceAfterFunction:
2828
writer.WriteBooleanValue(false);
2929
break;
30-
case DaxFormatterSpacingStyle.NoNpaceAfterFunction:
30+
case DaxFormatterSpacingStyle.NoSpaceAfterFunction:
3131
writer.WriteBooleanValue(true);
3232
break;
3333
default:
3434
throw new JsonException($"Unsupperted DaxFormatterSpacingStyle [{ value }]");
35-
}
35+
}
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)