Skip to content

Commit 545e7db

Browse files
committed
fix: test issues from contextlink removal
Apparently there were two things: - had to remove contextlink from the test command (that was expected) - can't import libs from putility in the test environment. The error produced for this doesn't really explain why.
1 parent fad2c94 commit 545e7db

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"webpack-cli": "^5.1.1"
2929
},
3030
"scripts": {
31-
"test": "npx mocha src/phoenix/test src/contextlink/test && node src/backend/tools/test",
31+
"test": "npx mocha src/phoenix/test && node src/backend/tools/test",
3232
"start=gui": "nodemon --exec \"node dev-server.js\" ",
3333
"start": "node ./tools/run-selfhosted.js",
3434
"build": "cd src/gui; node ./build.js",

src/phoenix/src/util/statemachine.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1818
*/
1919
import { disallowAccessToUndefined } from "./lang.js";
20-
import { libs } from '@heyputer/putility';
21-
const { Context } = libs.context;
20+
import putility from '@heyputer/putility';
21+
const { Context } = putility.libs.context;
2222

2323
export class StatefulProcessor {
2424
constructor (params) {

src/phoenix/test/coreutils/harness.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* You should have received a copy of the GNU Affero General Public License
1717
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1818
*/
19-
import { libs } from '@heyputer/putility';
20-
const { Context } = libs.context;
19+
import putility from '@heyputer/putility';
20+
const { Context } = putility.libs.context;
2121
import { SyncLinesReader } from '../../src/ansi-shell/ioutil/SyncLinesReader.js';
2222
import { CommandStdinDecorator } from '../../src/ansi-shell/pipeline/iowrappers.js';
2323
import { ReadableStream, WritableStream } from 'stream/web'

0 commit comments

Comments
 (0)