Skip to content

Commit

Permalink
Removed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
pchitolina-fauna committed Jan 25, 2024
1 parent dd66cc2 commit 7218734
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.fauna.query.template;

import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;

import java.util.ArrayList;
import java.util.List;

import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;

class FaunaTemplateTest {

Expand Down Expand Up @@ -63,16 +62,4 @@ void testTemplates_WithEscapes() {
assertEquals(TemplatePartType.LITERAL, expanded.get(1).getType());
}

@Test
void testTemplates_WithUnsupportedIdentifiers() {
FaunaTemplate template = new FaunaTemplate("let x = ${かわいい}");
Exception exception = assertThrows(IllegalArgumentException.class, () -> {
List<FaunaTemplate.TemplatePart> expanded = new ArrayList<>();
template.forEach(expanded::add);
});
String expectedMessage = "Invalid placeholder in template: line 1, col 9";
String actualMessage = exception.getMessage();
assertTrue(actualMessage.contains(expectedMessage));
}

}

0 comments on commit 7218734

Please sign in to comment.