Skip to content

Instantly share code, notes, and snippets.

@jacobpedd
jacobpedd / test.dart
Created February 12, 2020 00:41
Test for firebase function
import 'package:cloud_functions/cloud_functions.dart';
const String ENDPOINT = "https://us-central1-pickup-c1eb4.cloudfunctions.net/getItems";
Future test() async {
final HttpsCallableResult resp = await CloudFunctions.instance.getHttpsCallable(
functionName: 'getItems',
).call(<String, dynamic>{
"store_id":"0"
});
public void BookmarksEngine_InsertBookmarkWithNoUser()
{
SeedBookmarks();
Bookmark numberOne = new Bookmark();
numberOne.Topic = 7;
numberOne.ID = 3;
_bookmarksEngine.InsertBookmark(numberOne);
var result = _bookmarksEngine.GetBookmark(3);
Assert.AreEqual(3, result.ID);