Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename rest to 'latestReset'
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Jul 27, 2020
commit a4418b1442d0709a662ad7394c2de342ad4e06f6
2 changes: 1 addition & 1 deletion src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export { default as onStartup } from './onStartup'
export { default as onTutorialConfig } from './onTutorialConfig'
export { default as onTutorialContinueConfig } from './onTutorialContinueConfig'
export { default as onValidateSetup } from './onValidateSetup'
export { default as onRunReset } from './onRunReset'
export { default as onRunLatestReset } from './onRunLatestReset'
export { default as onErrorPage } from './onErrorPage'
export { onRunTest, onTestPass } from './onTest'
export { onSetupActions, onSolutionActions } from './onActions'
Expand Down
5 changes: 3 additions & 2 deletions src/actions/onRunReset.ts → src/actions/onRunLatestReset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { exec } from '../services/node'
import reset from '../services/reset'
import getLastCommitHash from '../services/reset/lastHash'

const onRunReset = async (context: Context) => {
// reset to the start of the last test
const onRunLatestReset = async (context: Context) => {
// reset to timeline
const tutorial: TT.Tutorial | null = context.tutorial.get()
const position: T.Position = context.position.get()
Expand All @@ -29,4 +30,4 @@ const onRunReset = async (context: Context) => {
}
}

export default onRunReset
export default onRunLatestReset
2 changes: 1 addition & 1 deletion src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Channel implements Channel {
actions.onRunTest(action)
return
case 'EDITOR_RUN_RESET':
actions.onRunReset(this.context)
actions.onRunLatestReset(this.context)
return
default:
logger(`No match for action type: ${actionType}`)
Expand Down