Skip to content

Commit

Permalink
Merge pull request #2314 from pascalgrimaud/react-jwt-fix-init
Browse files Browse the repository at this point in the history
Fix React JWT
  • Loading branch information
pascalgrimaud authored Jun 30, 2022
2 parents 31f84f1 + e3a9c7e commit 89d092d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
import org.springframework.test.web.servlet.MockMvc;
import tech.jhipster.lite.IntegrationTest;
import tech.jhipster.lite.TestUtils;
import tech.jhipster.lite.generator.init.application.InitApplicationService;
import tech.jhipster.lite.generator.project.domain.Project;
import tech.jhipster.lite.generator.project.infrastructure.primary.dto.ProjectDTO;
import tech.jhipster.lite.module.infrastructure.secondary.TestJHipsterModules;

@IntegrationTest
@AutoConfigureMockMvc
Expand All @@ -23,14 +23,11 @@ class ReactJwtResourceIT {
@Autowired
MockMvc mockMvc;

@Autowired
InitApplicationService initApplicationService;

@Test
void shouldAddJwtReact() throws Exception {
ProjectDTO projectDTO = readFileToObject("json/chips.json", ProjectDTO.class).folder(tmpDirForTest());
Project project = ProjectDTO.toProject(projectDTO);
initApplicationService.init(project);
TestJHipsterModules.applyInit(project);

mockMvc
.perform(post("/api/clients/react").contentType(MediaType.APPLICATION_JSON).content(TestUtils.convertObjectToJsonBytes(projectDTO)))
Expand Down

0 comments on commit 89d092d

Please sign in to comment.