|
| 1 | +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing |
| 2 | + |
| 3 | +exports[`generator - entity with default configuration should match files snapshot 1`] = ` |
| 4 | +{ |
| 5 | + ".jhipster/Foo.json": { |
| 6 | + "stateCleared": "modified", |
| 7 | + }, |
| 8 | + ".yo-rc.json": { |
| 9 | + "stateCleared": "modified", |
| 10 | + }, |
| 11 | + "src/main/java/com/mycompany/myapp/domain/Foo.java": { |
| 12 | + "stateCleared": "modified", |
| 13 | + }, |
| 14 | + "src/main/java/com/mycompany/myapp/domain/package-info.java": { |
| 15 | + "stateCleared": "modified", |
| 16 | + }, |
| 17 | + "src/main/java/com/mycompany/myapp/repository/FooRepository.java": { |
| 18 | + "stateCleared": "modified", |
| 19 | + }, |
| 20 | + "src/main/java/com/mycompany/myapp/repository/package-info.java": { |
| 21 | + "stateCleared": "modified", |
| 22 | + }, |
| 23 | + "src/main/java/com/mycompany/myapp/web/rest/FooResource.java": { |
| 24 | + "stateCleared": "modified", |
| 25 | + }, |
| 26 | + "src/main/java/com/mycompany/myapp/web/rest/package-info.java": { |
| 27 | + "stateCleared": "modified", |
| 28 | + }, |
| 29 | + "src/main/resources/config/liquibase/changelog/20200101000100_added_entity_Foo.xml": { |
| 30 | + "stateCleared": "modified", |
| 31 | + }, |
| 32 | + "src/main/resources/config/liquibase/fake-data/foo.csv": { |
| 33 | + "stateCleared": "modified", |
| 34 | + }, |
| 35 | + "src/main/webapp/app/entities/foo/delete/foo-delete-dialog.html": { |
| 36 | + "stateCleared": "modified", |
| 37 | + }, |
| 38 | + "src/main/webapp/app/entities/foo/delete/foo-delete-dialog.spec.ts": { |
| 39 | + "stateCleared": "modified", |
| 40 | + }, |
| 41 | + "src/main/webapp/app/entities/foo/delete/foo-delete-dialog.ts": { |
| 42 | + "stateCleared": "modified", |
| 43 | + }, |
| 44 | + "src/main/webapp/app/entities/foo/detail/foo-detail.html": { |
| 45 | + "stateCleared": "modified", |
| 46 | + }, |
| 47 | + "src/main/webapp/app/entities/foo/detail/foo-detail.spec.ts": { |
| 48 | + "stateCleared": "modified", |
| 49 | + }, |
| 50 | + "src/main/webapp/app/entities/foo/detail/foo-detail.ts": { |
| 51 | + "stateCleared": "modified", |
| 52 | + }, |
| 53 | + "src/main/webapp/app/entities/foo/foo.model.ts": { |
| 54 | + "stateCleared": "modified", |
| 55 | + }, |
| 56 | + "src/main/webapp/app/entities/foo/foo.routes.ts": { |
| 57 | + "stateCleared": "modified", |
| 58 | + }, |
| 59 | + "src/main/webapp/app/entities/foo/foo.test-samples.ts": { |
| 60 | + "stateCleared": "modified", |
| 61 | + }, |
| 62 | + "src/main/webapp/app/entities/foo/list/foo.html": { |
| 63 | + "stateCleared": "modified", |
| 64 | + }, |
| 65 | + "src/main/webapp/app/entities/foo/list/foo.spec.ts": { |
| 66 | + "stateCleared": "modified", |
| 67 | + }, |
| 68 | + "src/main/webapp/app/entities/foo/list/foo.ts": { |
| 69 | + "stateCleared": "modified", |
| 70 | + }, |
| 71 | + "src/main/webapp/app/entities/foo/route/foo-routing-resolve.service.spec.ts": { |
| 72 | + "stateCleared": "modified", |
| 73 | + }, |
| 74 | + "src/main/webapp/app/entities/foo/route/foo-routing-resolve.service.ts": { |
| 75 | + "stateCleared": "modified", |
| 76 | + }, |
| 77 | + "src/main/webapp/app/entities/foo/service/foo.service.spec.ts": { |
| 78 | + "stateCleared": "modified", |
| 79 | + }, |
| 80 | + "src/main/webapp/app/entities/foo/service/foo.service.ts": { |
| 81 | + "stateCleared": "modified", |
| 82 | + }, |
| 83 | + "src/main/webapp/app/entities/foo/update/foo-form.service.spec.ts": { |
| 84 | + "stateCleared": "modified", |
| 85 | + }, |
| 86 | + "src/main/webapp/app/entities/foo/update/foo-form.service.ts": { |
| 87 | + "stateCleared": "modified", |
| 88 | + }, |
| 89 | + "src/main/webapp/app/entities/foo/update/foo-update.html": { |
| 90 | + "stateCleared": "modified", |
| 91 | + }, |
| 92 | + "src/main/webapp/app/entities/foo/update/foo-update.spec.ts": { |
| 93 | + "stateCleared": "modified", |
| 94 | + }, |
| 95 | + "src/main/webapp/app/entities/foo/update/foo-update.ts": { |
| 96 | + "stateCleared": "modified", |
| 97 | + }, |
| 98 | + "src/main/webapp/i18n/en/foo.json": { |
| 99 | + "stateCleared": "modified", |
| 100 | + }, |
| 101 | + "src/main/webapp/i18n/en/user-management.json": { |
| 102 | + "stateCleared": "modified", |
| 103 | + }, |
| 104 | + "src/test/java/com/mycompany/myapp/domain/FooAsserts.java": { |
| 105 | + "stateCleared": "modified", |
| 106 | + }, |
| 107 | + "src/test/java/com/mycompany/myapp/domain/FooTest.java": { |
| 108 | + "stateCleared": "modified", |
| 109 | + }, |
| 110 | + "src/test/java/com/mycompany/myapp/domain/FooTestSamples.java": { |
| 111 | + "stateCleared": "modified", |
| 112 | + }, |
| 113 | + "src/test/java/com/mycompany/myapp/web/rest/FooResourceIT.java": { |
| 114 | + "stateCleared": "modified", |
| 115 | + }, |
| 116 | +} |
| 117 | +`; |
| 118 | + |
| 119 | +exports[`generator - entity with default configuration should match source calls 1`] = ` |
| 120 | +{ |
| 121 | + "addEntitiesToClient": [ |
| 122 | + { |
| 123 | + "application": "Application[jhipster]", |
| 124 | + "control": "TaskParameter[control]", |
| 125 | + "entities": [ |
| 126 | + "Entity[Foo]", |
| 127 | + ], |
| 128 | + "source": "TaskParameter[source]", |
| 129 | + }, |
| 130 | + ], |
| 131 | + "addEntityToCache": [ |
| 132 | + { |
| 133 | + "entityAbsoluteClass": "com.mycompany.myapp.domain.Foo", |
| 134 | + "relationships": [], |
| 135 | + }, |
| 136 | + ], |
| 137 | + "addEntityTranslationKey": [ |
| 138 | + { |
| 139 | + "language": "en", |
| 140 | + "translationKey": "foo", |
| 141 | + "translationValue": "Foo", |
| 142 | + }, |
| 143 | + ], |
| 144 | + "addLiquibaseChangelog": [ |
| 145 | + { |
| 146 | + "changelogName": "20200101000100_added_entity_Foo", |
| 147 | + "section": "base", |
| 148 | + }, |
| 149 | + ], |
| 150 | +} |
| 151 | +`; |
0 commit comments