vendor tsgo
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual signatureHelpIteratorNext"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestSignatureHelpIteratorNext(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @lib: esnext
|
||||
declare const iterator: Iterator<string, void, number>;
|
||||
|
||||
iterator.next(/*1*/);
|
||||
iterator.next(/*2*/ 0);
|
||||
|
||||
declare const generator: Generator<string, void, number>;
|
||||
|
||||
generator.next(/*3*/);
|
||||
generator.next(/*4*/ 0);
|
||||
|
||||
declare const asyncIterator: AsyncIterator<string, void, number>;
|
||||
|
||||
asyncIterator.next(/*5*/);
|
||||
asyncIterator.next(/*6*/ 0);
|
||||
|
||||
declare const asyncGenerator: AsyncGenerator<string, void, number>;
|
||||
|
||||
asyncGenerator.next(/*7*/);
|
||||
asyncGenerator.next(/*8*/ 0);`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineSignatureHelp(t)
|
||||
}
|
||||
Reference in New Issue
Block a user