-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45dffb8
commit c012016
Showing
8 changed files
with
111 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
enum ActionType { | ||
BUTTOM = 'buttom', | ||
REMINDER = 'reminder', | ||
TIMER = 'timer' | ||
} | ||
|
||
export default ActionType |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
enum NotificationType { | ||
POPUP = 'popup', | ||
BALLOON = 'balloon', | ||
SILENT = 'silent' | ||
} | ||
|
||
export default NotificationType |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
enum SpeechType { | ||
MALE = 'male', | ||
FEMALE = 'female', | ||
NEUTRAL = 'neutral' | ||
} | ||
|
||
export default SpeechType |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
enum Theme { | ||
DARK = 'dark', | ||
LIGHT = 'light' | ||
} | ||
|
||
export default Theme |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import ActionType from 'src/util/enum/ActionType' | ||
|
||
describe(':: Util :: Enum :: ActionType ::', () => { | ||
it('should return expected keys', () => { | ||
const enumKeys = Object.keys(ActionType) | ||
const keys = ['BUTTOM', 'REMINDER', 'TIMER'] | ||
|
||
enumKeys.forEach((key, index) => { | ||
expect(key).toBe(keys[index]) | ||
}) | ||
}) | ||
|
||
it('should return expected values', () => { | ||
const enumValues = Object.values(ActionType) | ||
const values = ['buttom', 'reminder', 'timer'] | ||
|
||
enumValues.forEach((value, index) => { | ||
expect(value).toBe(values[index]) | ||
}) | ||
}) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import NotificationType from 'src/util/enum/NotificationType' | ||
|
||
describe(':: Util :: Enum :: NotificationType ::', () => { | ||
it('should return expected keys', () => { | ||
const enumKeys = Object.keys(NotificationType) | ||
const keys = ['POPUP', 'BALLOON', 'SILENT'] | ||
|
||
enumKeys.forEach((key, index) => { | ||
expect(key).toBe(keys[index]) | ||
}) | ||
}) | ||
|
||
it('should return expected values', () => { | ||
const enumValues = Object.values(NotificationType) | ||
const values = ['popup', 'balloon', 'silent'] | ||
|
||
enumValues.forEach((value, index) => { | ||
expect(value).toBe(values[index]) | ||
}) | ||
}) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import SpeechType from 'src/util/enum/SpeechType' | ||
|
||
describe(':: Util :: Enum :: SpeechType ::', () => { | ||
it('should return expected keys', () => { | ||
const enumKeys = Object.keys(SpeechType) | ||
const keys = ['MALE', 'FEMALE', 'NEUTRAL'] | ||
|
||
enumKeys.forEach((key, index) => { | ||
expect(key).toBe(keys[index]) | ||
}) | ||
}) | ||
|
||
it('should return expected values', () => { | ||
const enumValues = Object.values(SpeechType) | ||
const values = ['male', 'female', 'neutral'] | ||
|
||
enumValues.forEach((value, index) => { | ||
expect(value).toBe(values[index]) | ||
}) | ||
}) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Theme from 'src/util/enum/Theme' | ||
|
||
describe(':: Util :: Enum :: Theme ::', () => { | ||
it('should return expected keys', () => { | ||
const enumKeys = Object.keys(Theme) | ||
const keys = ['DARK', 'LIGHT'] | ||
|
||
enumKeys.forEach((key, index) => { | ||
expect(key).toBe(keys[index]) | ||
}) | ||
}) | ||
|
||
it('should return expected values', () => { | ||
const enumValues = Object.values(Theme) | ||
const values = ['dark', 'light'] | ||
|
||
enumValues.forEach((value, index) => { | ||
expect(value).toBe(values[index]) | ||
}) | ||
}) | ||
}) |