Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
disable script injection
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbay committed Oct 22, 2020
1 parent 8193d5a commit 3d7bed1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions package.json
Expand Up @@ -32,14 +32,11 @@
"prettier": "^2.0.5",
"ts-jest": "^26.0.0",
"ts-node": "^8.10.2",
"tsify": "^4.0.2",
"typescript": "^3.9.2"
},
"scripts": {
"test": "npm run build && npm run build:browser-test && jest",
"build": "npm run build:node && npm run build:browser",
"build:node": "tsc",
"build:browser": "browserify src/injected/index.ts -p tsify > lib/inject.js",
"test": "npm run build && jest",
"build": "tsc",
"dev": "ts-node ./src/cli.ts",
"eslint": "([ \"$CI\" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .)",
"eslint-fix": "eslint --ext js --ext ts --fix ."
Expand Down
2 changes: 1 addition & 1 deletion test/css-path.spec.ts
Expand Up @@ -20,7 +20,7 @@

import { cssPath } from '../src/injected/css-path';

describe('CSS Path', () => {
describe.skip('CSS Path', () => {
it('should return an empty path if the given node is not an element node', () => {
const path = cssPath(document);
expect(path).toBe('');
Expand Down
2 changes: 1 addition & 1 deletion test/dom-helpers.spec.ts
Expand Up @@ -25,7 +25,7 @@ import * as puppeteer from 'puppeteer';
let browser: puppeteer.Browser, page: puppeteer.Page;
let isSubmitButton, getSelector;

describe('DOM', () => {
describe.skip('DOM', () => {
beforeAll(async () => {
browser = await puppeteer.launch({
defaultViewport: null,
Expand Down
2 changes: 1 addition & 1 deletion test/injected.spec.ts
Expand Up @@ -30,7 +30,7 @@ declare global {
}
}

describe('Injected Script', () => {
describe.skip('Injected Script', () => {
let fn;
beforeEach(() => {
require('../src/injected');
Expand Down

0 comments on commit 3d7bed1

Please sign in to comment.