Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3978493

Browse files
Build error and code style compliance
1 parent 89c8085 commit 3978493

File tree

6 files changed

+12
-17
lines changed

6 files changed

+12
-17
lines changed

‎Src/Notion.Client/Models/Blocks/BlockType.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,4 @@ public enum BlockType
100100
[EnumMember(Value = "unsupported")]
101101
Unsupported
102102
}
103-
104103
}

‎Src/Notion.Client/Models/Blocks/Color.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,5 @@ public enum Color
6060

6161
[EnumMember(Value = "red_background")]
6262
RedBackground,
63-
6463
}
6564
}

‎Src/Notion.Client/Models/Blocks/HeadingOneBlock.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class Info
2121
[JsonProperty("color")]
2222
[JsonConverter(typeof(StringEnumConverter))]
2323
public Color Color { get; set; }
24-
2524
}
2625
}
2726
}

‎Src/Notion.Client/Models/Blocks/HeadingThreeeBlock.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class Info
2121
[JsonProperty("color")]
2222
[JsonConverter(typeof(StringEnumConverter))]
2323
public Color Color { get; set; }
24-
2524
}
2625
}
2726
}

‎Src/Notion.Client/Models/Blocks/HeadingTwoBlock.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class Info
2121
[JsonProperty("color")]
2222
[JsonConverter(typeof(StringEnumConverter))]
2323
public Color Color { get; set; }
24-
2524
}
2625
}
2726
}

‎Test/Notion.UnitTests/DatabasesClientTests.cs‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,17 @@ public async Task CreateDatabaseAsync()
214214
{
215215
new SelectOptionSchema
216216
{
217-
Color = "green",
217+
Color = Color.Green,
218218
Name = "🥦Vegetable"
219219
},
220220
new SelectOptionSchema
221221
{
222-
Color = "red",
222+
Color = Color.Red,
223223
Name = "🍎Fruit"
224224
},
225225
new SelectOptionSchema
226226
{
227-
Color = "yellow",
227+
Color = Color.Yellow,
228228
Name = "💪Protein"
229229
}
230230
}
@@ -248,17 +248,17 @@ public async Task CreateDatabaseAsync()
248248
option =>
249249
{
250250
option.Name.Should().Be("🥦Vegetable");
251-
option.Color.Should().Be("green");
251+
option.Color.Should().Be(Color.Green);
252252
},
253253
option =>
254254
{
255255
option.Name.Should().Be("🍎Fruit");
256-
option.Color.Should().Be("red");
256+
option.Color.Should().Be(Color.Red);
257257
},
258258
option =>
259259
{
260260
option.Name.Should().Be("💪Protein");
261-
option.Color.Should().Be("yellow");
261+
option.Color.Should().Be(Color.Yellow);
262262
}
263263
);
264264
}
@@ -303,17 +303,17 @@ public async Task UpdateDatabaseAsync()
303303
{
304304
new SelectOption
305305
{
306-
Color = "green",
306+
Color = Color.Green,
307307
Name = "🥦Vegetables"
308308
},
309309
new SelectOption
310310
{
311-
Color = "red",
311+
Color = Color.Red,
312312
Name = "🍎Fruit"
313313
},
314314
new SelectOption
315315
{
316-
Color = "yellow",
316+
Color = Color.Yellow,
317317
Name = "💪Protein"
318318
}
319319
}
@@ -346,17 +346,17 @@ public async Task UpdateDatabaseAsync()
346346
option =>
347347
{
348348
option.Name.Should().Be("🥦Vegetables");
349-
option.Color.Should().Be("green");
349+
option.Color.Should().Be(Color.Green);
350350
},
351351
option =>
352352
{
353353
option.Name.Should().Be("🍎Fruit");
354-
option.Color.Should().Be("red");
354+
option.Color.Should().Be(Color.Red);
355355
},
356356
option =>
357357
{
358358
option.Name.Should().Be("💪Protein");
359-
option.Color.Should().Be("yellow");
359+
option.Color.Should().Be(Color.Yellow);
360360
}
361361
);
362362

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /