-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workspace): update projects model (#747)
Uses new project type instead of solution type. BREAKING CHANGE: removed solution type.
- Loading branch information
1 parent
3a71f44
commit d9b5336
Showing
2 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import API from '../../../APICore.js'; | ||
import Project from '../Project.js'; | ||
import {BaseProjectModel, ProjectModel, SolutionType} from '../ProjectInterfaces.js'; | ||
import {BaseProjectModel, ProjectModel, ProjectType} from '../ProjectInterfaces.js'; | ||
|
||
jest.mock('../../../APICore.js'); | ||
|
||
|
@@ -16,14 +16,14 @@ describe('Project', () => { | |
const mockNewProject: BaseProjectModel = { | ||
name: 'Pokemon Project', | ||
description: 'Project about pokemons', | ||
solutionType: SolutionType.Commerce, | ||
type: ProjectType.Commerce, | ||
}; | ||
|
||
const mockProject: ProjectModel = { | ||
id: mockProjectId, | ||
name: 'Pokemon Project', | ||
description: 'Project about pokemons', | ||
solutionType: SolutionType.Commerce, | ||
type: ProjectType.Commerce, | ||
createdBy: '[email protected]', | ||
updatedBy: '[email protected]', | ||
createdDate: '2023-07-19T02:37:23.399Z', | ||
|
@@ -57,7 +57,7 @@ describe('Project', () => { | |
expect(api.post).toHaveBeenCalledWith(Project.baseUrl, { | ||
name: 'Pokemon Project', | ||
description: 'Project about pokemons', | ||
solutionType: SolutionType.Commerce, | ||
type: ProjectType.Commerce, | ||
}); | ||
}); | ||
}); | ||
|
@@ -70,7 +70,7 @@ describe('Project', () => { | |
id: mockProjectId, | ||
name: 'Pokemon Project', | ||
description: 'Project about pokemons', | ||
solutionType: SolutionType.Commerce, | ||
type: ProjectType.Commerce, | ||
createdBy: '[email protected]', | ||
updatedBy: '[email protected]', | ||
createdDate: '2023-07-19T02:37:23.399Z', | ||
|