Skip to content

Commit 201308a

Browse files
authored
Update enum values for OpenHIM Apps type (#1216)
* Update enum values for OpenHIM Apps type * Update API test scripts and bump OpenHIM Core version
1 parent 0ef8191 commit 201308a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "openhim-core",
33
"description": "The OpenHIM core application that provides logging and routing of http requests",
4-
"version": "8.4.0",
4+
"version": "8.4.1",
55
"main": "./lib/server.js",
66
"bin": {
77
"openhim-core": "./bin/openhim-core.js"

src/model/apps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const AppSchema = new Schema({
1414
icon: String,
1515
type: {
1616
type: String,
17-
enum: ['link', 'embedded']
17+
enum: ['internal', 'external', 'esmodule']
1818
},
1919
category: String,
2020
access_roles: [String],

test/integration/appsAPITests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('API Integration Tests', () => {
2020
name: 'Test app',
2121
description: 'An app for testing the app framework',
2222
icon: 'data:image/png;base64, <base64>',
23-
type: 'link',
23+
type: 'external',
2424
category: 'Operations',
2525
access_roles: ['test-app-user'],
2626
url: 'http://test-app.org/app',

test/unit/appsTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('Apps', () => {
3232
name: 'Test app1',
3333
description: 'An app for testing the app framework',
3434
icon: 'data:image/png;base64, <base64>',
35-
type: 'link',
35+
type: 'external',
3636
category: 'Operations',
3737
access_roles: ['test-app-user'],
3838
url: 'http://test-app.org/app1',

0 commit comments

Comments
 (0)