mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Use standard (lowercase) assert in ReactInstanceIntegrationTest
Summary: Changelog: [Internal] TSIA; `ASSERT` isn't universally defined so let's switch to `assert`. bypass-github-export-checks Reviewed By: huntie Differential Revision: D54305583 fbshipit-source-id: ee80b462f1372e53301f1bb66eb589e4f7da89c6
This commit is contained in:
committed by
Facebook GitHub Bot
parent
798903a3a2
commit
7cfd686214
+7
-5
@@ -7,15 +7,17 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "InspectorMocks.h"
|
||||
#include "ReactNativeMocks.h"
|
||||
#include "UniquePtrFactory.h"
|
||||
|
||||
#include <folly/executors/QueuedImmediateExecutor.h>
|
||||
#include <folly/json.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <jsinspector-modern/InspectorInterfaces.h>
|
||||
#include <memory>
|
||||
|
||||
#include "InspectorMocks.h"
|
||||
#include "ReactNativeMocks.h"
|
||||
#include "UniquePtrFactory.h"
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
|
||||
namespace facebook::react::jsinspector_modern {
|
||||
|
||||
@@ -49,7 +51,7 @@ class ReactInstanceIntegrationTest : public Test {
|
||||
MockRemoteConnection& getRemoteConnection() {
|
||||
EXPECT_EQ(mockRemoteConnections_.objectsVended(), 1);
|
||||
auto rawPtr = mockRemoteConnections_[0];
|
||||
ASSERT(rawPtr != nullptr);
|
||||
assert(rawPtr);
|
||||
return *rawPtr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user