Skip to content

Commit 526e4ac

Browse files
author
Pranav Ravichandran
authored
fix: Revert "feat(675): Implement functions for freeze windows (#52)BREAKING" (#53)
This reverts commit 3f9dc74.
1 parent 3f9dc74 commit 526e4ac

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

index.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -109,34 +109,6 @@ class Executor {
109109
throw new Error('Not implemented');
110110
}
111111

112-
/**
113-
* Starts a new frozen build in an executor
114-
* @method _startFrozen
115-
* @param {Object} config Configuration
116-
* @return {Promise}
117-
*/
118-
startFrozen(config) {
119-
return this._startFrozen(config);
120-
}
121-
122-
async _startFrozen() {
123-
throw new Error('Not implemented');
124-
}
125-
126-
/**
127-
* Stops a previously scheduled frozen build in an executor
128-
* @async _stopFrozen
129-
* @param {Object} config Configuration
130-
* @return {Promise}
131-
*/
132-
stopFrozen(config) {
133-
return this._stopFrozen(config);
134-
}
135-
136-
async _stopFrozen() {
137-
throw new Error('Not implemented');
138-
}
139-
140112
/**
141113
* Get the status of a build
142114
* @method status

test/index.test.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ describe('index test', () => {
2424
stop: Joi.object().required(),
2525
startPeriodic: Joi.object().required(),
2626
stopPeriodic: Joi.object().required(),
27-
startFrozen: Joi.object().required(),
28-
stopFrozen: Joi.object().required(),
2927
status: Joi.object().required()
3028
}
3129
}
@@ -116,26 +114,6 @@ describe('index test', () => {
116114
})
117115
));
118116

119-
it('startFrozen returns an error when not overridden', () => (
120-
instance.startFrozen({})
121-
.then(() => {
122-
throw new Error('Oh no');
123-
}, (err) => {
124-
assert.isOk(err, 'err is null');
125-
assert.equal(err.message, 'Not implemented');
126-
})
127-
));
128-
129-
it('stopFrozen returns an error when not overridden', () => (
130-
instance.stopFrozen({})
131-
.then(() => {
132-
throw new Error('Oh no');
133-
}, (err) => {
134-
assert.isOk(err, 'error is null');
135-
assert.equal(err.message, 'Not implemented');
136-
})
137-
));
138-
139117
it('status returns an error when not overridden', () => (
140118
instance.status({})
141119
.then(() => {

0 commit comments

Comments
 (0)