Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add expect/assert methods #5

Open
fregante opened this issue Jun 27, 2021 · 1 comment
Open

Add expect/assert methods #5

fregante opened this issue Jun 27, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@fregante
Copy link
Owner

fregante commented Jun 27, 2021

function backgroundStuff() {
	expectBackground();
	// -> Error: Expected background context, found content script

	chrome.alarms.set();
}

I'm not sure about the API because this would only accept one type at a time and no negatives, e.g. "expect not background"

@fregante fregante added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant